X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=etc%2Fafpd%2Fuam.c;h=92173915c5f5cc5e7dfa8934c00f1a1ba34a1d85;hb=745c25530d830676a2323835545b641a7ff9c59c;hp=3bb636f7ece899a0b0a3846b9fad32d92fb47673;hpb=7f788a6377fb0989d67e064edbccea104a084097;p=netatalk.git diff --git a/etc/afpd/uam.c b/etc/afpd/uam.c index 3bb636f7..92173915 100644 --- a/etc/afpd/uam.c +++ b/etc/afpd/uam.c @@ -56,11 +56,7 @@ char *strchr (), *strrchr (); #include "auth.h" #include "uam_auth.h" -#ifdef AFP3x #define utf8_encoding() (afp_version >= 30) -#else -#define utf8_encoding() (0) -#endif #ifdef TRU64 #include @@ -428,7 +424,7 @@ int uam_afpserver_option(void *private, const int what, void *option, { struct DSI *dsi = obj->handle; const struct sockaddr *sa; - char hbuf[NI_MAXHOST]; + static char hbuf[NI_MAXHOST]; sa = (struct sockaddr *)&dsi->client; if (getnameinfo(sa, sizeof(dsi->client), hbuf, sizeof(hbuf), NULL, 0, 0) == 0)