diff --git a/src/elogd.c b/src/elogd.c index 93ee27c4..90695966 100755 --- a/src/elogd.c +++ b/src/elogd.c @@ -1292,7 +1292,7 @@ Encode the given string in-place by adding %XX escapes } } *pd = '\0'; - strlcpy(ps, str, size); + strlcpy(ps, (char *)str, size); } void url_slash_encode(char *ps, int size) @@ -1318,7 +1318,7 @@ Do the same including '/' characters } } *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'; - strlcpy(ps, str, size); + strlcpy(ps, (char *)str, size); } void btou(char *str)