summaryrefslogtreecommitdiff
blob: d8e34d628094fa4e6b6bff3c5b05c2cf3817dc73 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Taken from Fedora

https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=183426
http://bugs.gentoo.org/125622

--- zoo/parse.c
+++ zoo/parse.c
@@ -39,7 +39,7 @@
    char *namep;                   /* points to relevant part of tempname */
 
    char *p;
-   strcpy (tempname, fname);
+   strncpy(tempname, fname, LFNAMESIZE);
 
 #ifdef DEBUG
 printf ("parse:  supplied name is [%s].\n", tempname);