14 lines
522 B
Diff
14 lines
522 B
Diff
|
diff -pur bzip2-1.0.6//bzip2recover.c bzip2-1.0.6-fix//bzip2recover.c
|
||
|
--- bzip2-1.0.6//bzip2recover.c 2010-09-11 01:18:40.000000000 +0200
|
||
|
+++ bzip2-1.0.6-fix//bzip2recover.c 2010-09-24 19:44:12.000000000 +0200
|
||
|
@@ -309,7 +309,8 @@ Int32 main ( Int32 argc, Char** argv )
|
||
|
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,
|