From: Theodore Tso Date: Wed, 1 Jul 1998 21:57:42 +0000 (+0000) Subject: Fix obvious bug where we were returning a pointer to an automatic X-Git-Tag: krb5-1.1-beta1~689 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=25f42f397ad148fed4d496410e695a57403030ec;p=krb5.git Fix obvious bug where we were returning a pointer to an automatic variable which should have been a static. Fortunately nothing in the Mac tree was using inet_ntoa().... git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10606 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/krb5/os/ChangeLog b/src/lib/krb5/os/ChangeLog index c9b7ece1f..ac954b0de 100644 --- a/src/lib/krb5/os/ChangeLog +++ b/src/lib/krb5/os/ChangeLog @@ -1,3 +1,10 @@ +Wed Jul 1 17:54:56 1998 Theodore Y. Ts'o + + * macsock.c(inet_ntoa): Fix obvious bug where we were returning a + pointer to an automatic variable which should have been a + static. Fortunately nothing in the Mac tree was using + inet_ntoa().... + 1998-05-06 Theodore Ts'o * t_std_conf.c (main): POSIX states that getopt returns -1 diff --git a/src/lib/krb5/os/macsock.c b/src/lib/krb5/os/macsock.c index bec733552..a7f6b05a1 100644 --- a/src/lib/krb5/os/macsock.c +++ b/src/lib/krb5/os/macsock.c @@ -526,7 +526,7 @@ char* inet_ntoa(struct in_addr ina) { OSErr err; #define max_addr_str 16 - char addrStr[max_addr_str]; + static char addrStr[max_addr_str]; err = AddrToStr(ina.s_addr, addrStr); return addrStr;