Mercurial > hg > xmms-sid
diff src/xs_support.c @ 224:df4cb5115322
Removed duplicate function, more portability cleanups.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Wed, 15 Dec 2004 14:23:03 +0000 |
parents | 57231fe14369 |
children | 858c09f59011 |
line wrap: on
line diff
--- a/src/xs_support.c Wed Dec 15 14:18:00 2004 +0000 +++ b/src/xs_support.c Wed Dec 15 14:23:03 2004 +0000 @@ -21,7 +21,7 @@ */ #include "xmms-sid.h" #include "xs_support.h" - +#include <ctype.h> /* Copy a string */ @@ -75,15 +75,13 @@ if (*ppResult != NULL) { - *ppResult = g_realloc(*ppResult, strlen(*ppResult) + strlen(pStr) + 1); + *ppResult = (gchar *) g_realloc(*ppResult, strlen(*ppResult) + strlen(pStr) + 1); if (*ppResult == NULL) return -1; - strcat(*ppResult, pStr); } else { - *ppResult = g_malloc(strlen(pStr) + 1); + *ppResult = (gchar *) g_malloc(strlen(pStr) + 1); if (*ppResult == NULL) return -1; - strcpy(*ppResult, pStr); }