Blame SOURCES/bzip2-1.0.4-bzip2recover.patch

51031d
--- bzip2-1.0.4/bzip2recover.c.pom	2007-01-03 03:00:55.000000000 +0100
51031d
+++ bzip2-1.0.4/bzip2recover.c	2007-02-05 11:55:17.000000000 +0100
51031d
@@ -309,7 +309,8 @@
51031d
    UInt32      buffHi, buffLo, blockCRC;
51031d
    Char*       p;
51031d
 
51031d
-   strcpy ( progName, argv[0] );
51031d
+   strncpy ( progName, argv[0], BZ_MAX_FILENAME-1);
51031d
+   progName[BZ_MAX_FILENAME-1]='\0';
51031d
    inFileName[0] = outFileName[0] = 0;
51031d
 
51031d
    fprintf ( stderr,