# HG changeset patch # User Matti Hamalainen # Date 1288383143 -10800 # Node ID f741718d13c5db39fc78ee0aaba8ddae0081d149 # Parent 9ae3d87a686fb108cadbcb8837c92be70335692a Portability fixes. diff -r 9ae3d87a686f -r f741718d13c5 th_string.c --- a/th_string.c Fri Oct 29 19:54:42 2010 +0300 +++ b/th_string.c Fri Oct 29 23:12:23 2010 +0300 @@ -58,14 +58,14 @@ */ char * th_strdup_vprintf(const char *fmt, va_list args) { - ssize_t size = 100; + int size = 100; char *buf, *nbuf = NULL; if ((buf = th_malloc(size)) == NULL) return NULL; while (1) { - ssize_t n = vsnprintf(buf, size, fmt, args); + int n = vsnprintf(buf, size, fmt, args); if (n > -1 && n < size) return buf; if (n > -1)