Commit c47b70f4 authored by Pekka Pessi's avatar Pekka Pessi

Fixed pointer artithmetics by memccpy() in su_strcat_all().

(function in su/su_strdup.c).

darcs-hash:20060411182029-65a35-432b84c6ab91969de46717235996966d40e03ed3.gz
parent b1d7eb90
......@@ -130,7 +130,7 @@ char *su_strcat_all(su_home_t *home, ...)
va_start(va, home);
for (i = 0; i < n; i++)
s = memccpy(s, va_arg(va, char const *), '\0', end - s) - 1;
s = (char *)memccpy(s, va_arg(va, char const *), '\0', end - s) - 1;
va_end(va);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment