]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
* resolv/res_debug.c (loc_ntoa): Define error as array, not pointer.
authorUlrich Drepper <drepper@redhat.com>
Fri, 12 May 2006 04:18:25 +0000 (04:18 +0000)
committerUlrich Drepper <drepper@redhat.com>
Fri, 12 May 2006 04:18:25 +0000 (04:18 +0000)
ChangeLog
resolv/res_debug.c

index 26f303f94ee71d7d87037bf8ea3c69f0131d82e4..3c133da56ea89a1d0380332d992fc0aa3c598153 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
 2006-05-11  Ulrich Drepper  <drepper@redhat.com>
 
+       * resolv/res_debug.c (loc_ntoa): Define error as array, not pointer.
+
        * include/arpa/nameser.h: Declare _ns_flagdata as hidden.
 
        * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_master.
index 9b308b189a6d4fb26a557362080e1942589e018e..32ac829730a669c9b79dca62995c9f2eec18d95f 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;