Blame SOURCES/bzip2-1.0.4-bzip2recover.patch

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