comparison th_string.c @ 38:cdaa16f99474

Oops, forgot a debug fprintf() in. Fixed.
author Matti Hamalainen <ccr@tnsp.org>
date Thu, 23 Jun 2011 11:11:55 +0300
parents 3986b139bbbd
children 0d55592e0e01
comparison
equal deleted inserted replaced
37:3986b139bbbd 38:cdaa16f99474
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);