13 lines
311 B
Diff
13 lines
311 B
Diff
--- bzip2recover.c
|
|
+++ bzip2recover.c
|
|
@@ -309,7 +309,8 @@
|
|
UInt32 buffHi, buffLo, blockCRC;
|
|
Char* p;
|
|
|
|
- strcpy ( progName, argv[0] );
|
|
+ strncpy ( progName, argv[0], BZ_MAX_FILENAME-1);
|
|
+ progName[BZ_MAX_FILENAME-1]='\0';
|
|
inFileName[0] = outFileName[0] = 0;
|
|
|
|
fprintf ( stderr,
|