* resolv/res_debug.c (loc_ntoa): Define error as array, not pointer.

This commit is contained in:
Ulrich Drepper 2006-05-12 04:18:25 +00:00
parent 08cfb83947
commit 5d3fd1f641
2 changed files with 3 additions and 1 deletions

View File

@ -1,5 +1,7 @@
2006-05-11 Ulrich Drepper <drepper@redhat.com> 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. * include/arpa/nameser.h: Declare _ns_flagdata as hidden.
* nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_master. * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_master.

View File

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