From: Zdenek Dohnal Date: Mon, 8 Jul 2024 13:11:45 +0000 (+0200) Subject: Do not use C99-only construct (fixes #1000) X-Git-Tag: v2.4.11~24 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a2b8872ea95564e065e3a08e2aa12a15515bc993;p=thirdparty%2Fcups.git Do not use C99-only construct (fixes #1000) --- diff --git a/scheduler/client.c b/scheduler/client.c index 779404cb8a..d47b84d066 100644 --- a/scheduler/client.c +++ b/scheduler/client.c @@ -1145,8 +1145,8 @@ cupsdReadClient(cupsd_client_t *con) /* I - Client to read from */ { unsigned int i = 0; // Array index - for (char *start = con->uri + 9; *start && *start != '?' && i < sizeof(name);) - name[i++] = *start++; + for (ptr = con->uri + 9; *ptr && *ptr != '?' && i < sizeof(name);) + name[i++] = *ptr++; name[i] = '\0'; @@ -1185,8 +1185,8 @@ cupsdReadClient(cupsd_client_t *con) /* I - Client to read from */ { unsigned int i = 0; // Array index - for (char *start = con->uri + 10; *start && *start != '?' && i < sizeof(name);) - name[i++] = *start++; + for (ptr = con->uri + 10; *ptr && *ptr != '?' && i < sizeof(name);) + name[i++] = *ptr++; name[i] = '\0';