summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Mende <angelos@gentoo.org>2011-05-07 17:17:23 +0000
committerChristoph Mende <angelos@gentoo.org>2011-05-07 17:17:23 +0000
commit705b61b5bd8cc73a95b970b59d8468fea99bcaae (patch)
treea319d81a8eb3eb70273527e773d1e61178132120 /media-sound/takcd/files
parentFix possible overflows (bug #337527) (diff)
downloadhistorical-705b61b5bd8cc73a95b970b59d8468fea99bcaae.tar.gz
historical-705b61b5bd8cc73a95b970b59d8468fea99bcaae.tar.bz2
historical-705b61b5bd8cc73a95b970b59d8468fea99bcaae.zip
Fix possible overflow (bug #337849)
Package-Manager: portage-2.2.0_alpha31/cvs/Linux x86_64
Diffstat (limited to 'media-sound/takcd/files')
-rw-r--r--media-sound/takcd/files/takcd-0.10-overflow.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/media-sound/takcd/files/takcd-0.10-overflow.patch b/media-sound/takcd/files/takcd-0.10-overflow.patch
new file mode 100644
index 000000000000..c3e7e16d286a
--- /dev/null
+++ b/media-sound/takcd/files/takcd-0.10-overflow.patch
@@ -0,0 +1,13 @@
+diff --git a/config_api.c b/config_api.c
+index b62e41c..2b6a6cf 100644
+--- a/config_api.c
++++ b/config_api.c
+@@ -41,7 +41,7 @@ static void on_change(config_t *conf)
+ int config_open(config_t *conf, const char *filename, int flag)
+ {
+ struct stat st;
+- char mode[2];
++ char mode[3];
+
+ /* set fopen() mode or return if flag is not valid */
+ if (flag == C_WRITE) {