Mercurial > hg > nnchat
comparison th_string.c @ 362:7f9057e29af2
Oops, forgot a debug fprintf() in .. Fixed!
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Thu, 23 Jun 2011 11:11:12 +0300 |
parents | b3556ff686fc |
children | 9ad157feb99a |
comparison
equal
deleted
inserted
replaced
361:b3556ff686fc | 362:7f9057e29af2 |
---|---|
62 char *buf, *nbuf = NULL; | 62 char *buf, *nbuf = NULL; |
63 | 63 |
64 if ((buf = th_malloc(size)) == NULL) | 64 if ((buf = th_malloc(size)) == NULL) |
65 return NULL; | 65 return NULL; |
66 | 66 |
67 fprintf(stderr, "th_strdup_vprintf(\"%s\", ...):\n", fmt); | |
68 while (1) { | 67 while (1) { |
69 int n; | 68 int n; |
70 va_list ap; | 69 va_list ap; |
71 va_copy(ap, args); | 70 va_copy(ap, args); |
72 n = vsnprintf(buf, size, fmt, ap); | 71 n = vsnprintf(buf, size, fmt, ap); |