# HG changeset patch # User Rob Flynn # Date 977162806 0 # Node ID fbc0cbf24a62c2ee04aae5a391731628c2784df8 # Parent cb84b5c6d9abfb121afed482166aa35c33ac16a4 [gaim-migrate @ 1303] Rob and Deckin are LOOOOSEERS =) committer: Tailor Script diff -r cb84b5c6d9ab -r fbc0cbf24a62 src/util.c --- a/src/util.c Mon Dec 18 05:17:58 2000 +0000 +++ b/src/util.c Mon Dec 18 18:06:46 2000 +0000 @@ -1277,15 +1277,17 @@ { gchar *end = dest + destsize; - while (*src && dest < end) { - if (*src == '\n' && dest < end - 4) { + while (dest < end) { + if (*src == '\n' && dest < end - 5) { strcpy(dest, "
"); src++; dest += 4; - } else - *dest++ = *src++; + } else { + *dest++ = *src; + if (*src == '\0') return; + else src++; + } } - dest[destsize-1] = '\0'; }