summaryrefslogtreecommitdiffstats
path: root/contrib/ntp/sntp/libopts/nested.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/ntp/sntp/libopts/nested.c')
-rw-r--r--contrib/ntp/sntp/libopts/nested.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/contrib/ntp/sntp/libopts/nested.c b/contrib/ntp/sntp/libopts/nested.c
index f4fb226..aaf089f 100644
--- a/contrib/ntp/sntp/libopts/nested.c
+++ b/contrib/ntp/sntp/libopts/nested.c
@@ -859,6 +859,7 @@ LOCAL int
get_special_char(char const ** ppz, int * ct)
{
char const * pz = *ppz;
+ char * rz;
if (*ct < 3)
return '&';
@@ -872,7 +873,8 @@ get_special_char(char const ** ppz, int * ct)
base = 16;
pz++;
}
- retch = (int)strtoul(pz, (char **)&pz, base);
+ retch = (int)strtoul(pz, &rz, base);
+ pz = rz;
if (*pz != ';')
return '&';
base = (int)(++pz - *ppz);
OpenPOWER on IntegriCloud