X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?p=netatalk.git;a=blobdiff_plain;f=etc%2Fafpd%2Ffce_util.c;h=6340110eeb3f3363c885703ee06b70d48e33e567;hp=c1377ee68ae68be95e9fbfdfb9b5fccf40cf1736;hb=881e57722b18ada0996da0474c3b50cdc14b97c6;hpb=0387b4665bef6a5cb6851581e42cad0ecca3e90c diff --git a/etc/afpd/fce_util.c b/etc/afpd/fce_util.c index c1377ee6..6340110e 100755 --- a/etc/afpd/fce_util.c +++ b/etc/afpd/fce_util.c @@ -199,15 +199,12 @@ int fce_handle_coalescation( char *path, int is_dir, int mode ) fce_history_list[oldest_entry_idx].tv = tv; fce_history_list[oldest_entry_idx].mode = mode; fce_history_list[oldest_entry_idx].is_dir = is_dir; - strncpy( fce_history_list[oldest_entry_idx].path, path, FCE_MAX_PATH_LEN ); + strncpy( fce_history_list[oldest_entry_idx].path, path, MAXPATHLEN); /* we have to handle this event */ return FALSE; - } - - /* * * Set event coalescation to reduce number of events sent over UDP