1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-11-04 08:17:17 -05:00

string_concat: Assume all variadic arguments point to const.

This commit is contained in:
Kalle Olavi Niemitalo 2007-01-28 02:04:00 +02:00 committed by Kalle Olavi Niemitalo
parent 66614acbc0
commit a4293ed606

View File

@ -375,7 +375,7 @@ struct string *
string_concat(struct string *string, ...)
{
va_list ap;
unsigned char *source;
const unsigned char *source;
assertm(string, "[string_concat]");
if_assert_failed { return NULL; }
@ -383,7 +383,7 @@ string_concat(struct string *string, ...)
check_string_magic(string);
va_start(ap, string);
while ((source = va_arg(ap, unsigned char *)))
while ((source = va_arg(ap, const unsigned char *)))
if (*source)
add_to_string(string, source);