X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=etc%2Fafpd%2Fcatsearch.c;h=b20dcba9811d5c7dbc95a0149e413c23e4dc20a8;hb=6dc1d33c33b947a2379654553f1e9740abbe324e;hp=82576652f01c2df3c04775138c16f757fa7bf737;hpb=724c0203811e5cb7872fc4ee4089115f58b32705;p=netatalk.git diff --git a/etc/afpd/catsearch.c b/etc/afpd/catsearch.c index 82576652..b20dcba9 100644 --- a/etc/afpd/catsearch.c +++ b/etc/afpd/catsearch.c @@ -97,7 +97,7 @@ struct scrit { u_int16_t offcnt; /* Offspring count */ struct finderinfo finfo; /* Finder info */ char lname[64]; /* Long name */ - char utf8name[512]; /* UTF8 name */ + char utf8name[514]; /* UTF8 or UCS2 name */ /* for convert_charset dest_len parameter +2 */ }; /* @@ -258,7 +258,7 @@ static int crit_check(struct vol *vol, struct path *path) { struct adouble *adp = NULL; time_t c_date, b_date; u_int32_t ac_date, ab_date; - static char convbuf[512]; + static char convbuf[514]; /* for convert_charset dest_len parameter +2 */ size_t len; if (S_ISDIR(path->st.st_mode)) {