summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'x11-misc/dzen/files/dzen-0.9.5-off-by-one.patch')
-rw-r--r--x11-misc/dzen/files/dzen-0.9.5-off-by-one.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/x11-misc/dzen/files/dzen-0.9.5-off-by-one.patch b/x11-misc/dzen/files/dzen-0.9.5-off-by-one.patch
new file mode 100644
index 000000000000..008fd6455014
--- /dev/null
+++ b/x11-misc/dzen/files/dzen-0.9.5-off-by-one.patch
@@ -0,0 +1,11 @@
+--- a/main.c
++++ b/main.c
+@@ -109,7 +109,7 @@
+ rem = NULL;
+ }
+ while(off < len) {
+- if(i > MAX_LINE_LEN) {
++ if(i == MAX_LINE_LEN - 1) {
+ outbuf[i] = '\0';
+ return ++off;
+ }