(loc_ntoa): Define error as array, not pointer.
authordrepper <drepper>
Fri, 12 May 2006 04:17:52 +0000 (04:17 +0000)
committerdrepper <drepper>
Fri, 12 May 2006 04:17:52 +0000 (04:17 +0000)
resolv/res_debug.c

index 9b308b1..32ac829 100644 (file)
@@ -896,7 +896,7 @@ loc_ntoa(binary, ascii)
        const u_char *binary;
        char *ascii;
 {
-       static char *error = "?";
+       static char error[] = "?";
        static char tmpbuf[sizeof
 "1000 60 60.000 N 1000 60 60.000 W -12345678.00m 90000000.00m 90000000.00m 90000000.00m"];
        const u_char *cp = binary;