From 5d3fd1f6417f6775557183a3992209237d5539e9 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Fri, 12 May 2006 04:18:25 +0000 Subject: [PATCH] * resolv/res_debug.c (loc_ntoa): Define error as array, not pointer. --- ChangeLog | 2 ++ resolv/res_debug.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 26f303f94e..3c133da56e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,7 @@ 2006-05-11 Ulrich Drepper + * 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. diff --git a/resolv/res_debug.c b/resolv/res_debug.c index 9b308b189a..32ac829730 100644 --- a/resolv/res_debug.c +++ b/resolv/res_debug.c @@ -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; -- 2.11.4.GIT