diff libnnchat.c @ 79:e36df57c5b0f

Use th_strdup() again.
author Matti Hamalainen <ccr@tnsp.org>
date Wed, 24 Dec 2008 16:03:53 +0200
parents 745f670068dc
children c2d916b340bf
line wrap: on
line diff
--- a/libnnchat.c	Thu Dec 18 14:34:44 2008 +0200
+++ b/libnnchat.c	Wed Dec 24 16:03:53 2008 +0200
@@ -392,12 +392,12 @@
 void addRingBuf(ringbuf_t *buf, const char *str)
 {
     if (buf->n < buf->size) {
-        buf->data[buf->n] = strdup(str);
+        buf->data[buf->n] = th_strdup(str);
         buf->n++;
     } else {
         th_free(buf->data[0]);
         memmove(&(buf->data[0]), &(buf->data[1]), buf->size - 1);
-        buf->data[buf->size - 1] = strdup(str);
+        buf->data[buf->size - 1] = th_strdup(str);
     }
 }