bzip2-1.0.4-bzip2recover.patch 411 B

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