bzip2/bzip2-1.0.6-bzip2recover_strncpy.patch
Silvan Calarco af6e7b359a fix requirements of subpackages to match exact version and release
added build requirements
move documentation files to devel package [release 1.0.6-3mamba;Sun Aug 19 2012]
2024-01-05 21:02:50 +01:00

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,