diff options
Diffstat (limited to 'community/drawterm/fix-off-by-one.patch')
-rw-r--r-- | community/drawterm/fix-off-by-one.patch | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/community/drawterm/fix-off-by-one.patch b/community/drawterm/fix-off-by-one.patch new file mode 100644 index 0000000000..a1b6d5dc33 --- /dev/null +++ b/community/drawterm/fix-off-by-one.patch @@ -0,0 +1,14 @@ +upstream url: https://code.9front.org/hg/drawterm/rev/fbf56ef73faf + +diff -upr drawterm-20170119.orig/kern/devmouse.c drawterm-20170119/kern/devmouse.c +--- drawterm-20170119.orig/kern/devmouse.c 2017-01-30 09:18:21.250082979 +0100 ++++ drawterm-20170119/kern/devmouse.c 2017-01-30 09:18:40.093373597 +0100 +@@ -122,7 +122,7 @@ mouseclose(Chan *c) + long + mouseread(Chan *c, void *va, long n, vlong offset) + { +- char buf[4*12+1]; ++ char buf[1+4*12+1]; + Mousestate m; + uchar *p; + int b; |