diff options
Diffstat (limited to 'source4/lib/replace/inet_pton.c')
-rw-r--r-- | source4/lib/replace/inet_pton.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/lib/replace/inet_pton.c b/source4/lib/replace/inet_pton.c index ea0fe6b78c..80e4865ef4 100644 --- a/source4/lib/replace/inet_pton.c +++ b/source4/lib/replace/inet_pton.c @@ -77,7 +77,7 @@ inet_pton4(src, dst) const char *src; unsigned char *dst; { - const char digits[] = "0123456789"; + static const char digits[] = "0123456789"; int saw_digit, octets, ch; unsigned char tmp[NS_INADDRSZ], *tp; @@ -131,7 +131,7 @@ inet_pton6(src, dst) const char *src; unsigned char *dst; { - const char xdigits_l[] = "0123456789abcdef", + static const char xdigits_l[] = "0123456789abcdef", xdigits_u[] = "0123456789ABCDEF"; unsigned char tmp[NS_IN6ADDRSZ], *tp, *endp, *colonp; const char *xdigits, *curtok; |