OSDN Git Service

* src/lhext.c (extract_one): should use the `FILENAME_LENGTH'
authorarai <arai@6a8cc165-1e22-0410-a132-eb4e3f353aba>
Tue, 16 Jul 2002 19:15:59 +0000 (19:15 +0000)
committerarai <arai@6a8cc165-1e22-0410-a132-eb4e3f353aba>
Tue, 16 Jul 2002 19:15:59 +0000 (19:15 +0000)
macro rather than 256 (provisionally fixed).

git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/lha/lha/trunk@372 6a8cc165-1e22-0410-a132-eb4e3f353aba

src/lhext.c

index 1bd21f5..4de281f 100644 (file)
@@ -200,7 +200,7 @@ extract_one(afp, hdr)
 {
        FILE           *fp;     /* output file */
        struct stat     stbuf;
-       char            name[257];
+       char            name[FILENAME_LENGTH];
        int             crc;
        int             method;
        boolean         save_quiet, save_verbose, up_flag;