Mercurial > hg > nnchat
changeset 127:f741718d13c5
Portability fixes.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Fri, 29 Oct 2010 23:12:23 +0300 |
parents | 9ae3d87a686f |
children | 713879a7ca10 |
files | th_string.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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)