Fixed compiler warnings

SVN revision: 1640
This commit is contained in:
Stefan Ritt 2006-01-27 08:03:35 +00:00
parent 2c4bd8fa44
commit 3dea50aa09

View File

@ -1292,7 +1292,7 @@ Encode the given string in-place by adding %XX escapes
} }
} }
*pd = '\0'; *pd = '\0';
strlcpy(ps, str, size); strlcpy(ps, (char *)str, size);
} }
void url_slash_encode(char *ps, int size) void url_slash_encode(char *ps, int size)
@ -1318,7 +1318,7 @@ Do the same including '/' characters
} }
} }
*pd = '\0'; *pd = '\0';
strlcpy(ps, str, size); strlcpy(ps, (char *)str, size);
} }
/*-------------------------------------------------------------------*/ /*-------------------------------------------------------------------*/
@ -1342,7 +1342,7 @@ Encode the given string in-place by adding \\ escapes for `$"\
} }
} }
*pd = '\0'; *pd = '\0';
strlcpy(ps, str, size); strlcpy(ps, (char *)str, size);
} }
void btou(char *str) void btou(char *str)