aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--bzip2recover.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bzip2recover.c b/bzip2recover.c
index 8c79a90..e6c0a99 100644
--- a/bzip2recover.c
+++ b/bzip2recover.c
@@ -490,7 +490,7 @@ Int32 main ( Int32 argc, Char** argv )
490 } 490 }
491 /* Now split points to the start of the basename. */ 491 /* Now split points to the start of the basename. */
492 ofs = split - outFileName; 492 ofs = split - outFileName;
493 sprintf (split, "rec%5d", wrBlock+1); 493 snprintf (split, BZ_MAX_FILENAME - ofs, "rec%5d", wrBlock+1);
494 for (p = split; *p != 0; p++) if (*p == ' ') *p = '0'; 494 for (p = split; *p != 0; p++) if (*p == ' ') *p = '0';
495 strcat (outFileName, inFileName + ofs); 495 strcat (outFileName, inFileName + ofs);
496 496