diff options
author | Mike Frysinger <vapier@gentoo.org> | 2004-04-06 21:55:33 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2004-04-06 21:55:33 +0000 |
commit | 3cbb9a5f61031b79a879525e22531a19f4f32927 (patch) | |
tree | c97d70b2537ce704f2902a3490b102e7d7ccb80e /app-arch/sharutils/files/sharutils-4.2.1-buffer-check.patch | |
parent | changed description (diff) | |
download | historical-3cbb9a5f61031b79a879525e22531a19f4f32927.tar.gz historical-3cbb9a5f61031b79a879525e22531a19f4f32927.tar.bz2 historical-3cbb9a5f61031b79a879525e22531a19f4f32927.zip |
buffer size check #46998
Diffstat (limited to 'app-arch/sharutils/files/sharutils-4.2.1-buffer-check.patch')
-rw-r--r-- | app-arch/sharutils/files/sharutils-4.2.1-buffer-check.patch | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/app-arch/sharutils/files/sharutils-4.2.1-buffer-check.patch b/app-arch/sharutils/files/sharutils-4.2.1-buffer-check.patch new file mode 100644 index 000000000000..96ad67645019 --- /dev/null +++ b/app-arch/sharutils/files/sharutils-4.2.1-buffer-check.patch @@ -0,0 +1,11 @@ +--- src/shar.c.orig 2004-04-06 17:51:40.849154592 -0400 ++++ src/shar.c 2004-04-06 17:53:13.843017376 -0400 +@@ -1905,7 +1905,7 @@ + break; + + case 'o': +- strcpy (output_base_name, optarg); ++ strncpy (output_base_name, optarg, sizeof(output_base_name)); + if (!strchr (output_base_name, '%')) + strcat (output_base_name, ".%02d"); + part_number = 0; |