diff options
| author | Sören Tempel <soeren+git@soeren-tempel.net> | 2017-01-30 09:19:52 +0100 |
|---|---|---|
| committer | Sören Tempel <soeren+git@soeren-tempel.net> | 2017-01-30 09:30:42 +0100 |
| commit | 85d8f7ea2953cd45482a8db01caeb4dd07ecebda (patch) | |
| tree | c29f7e96bc5e55f4b0ae7c98e8f97f1d72397ffa /testing/drawterm/fix-off-by-one.patch | |
| parent | 3af95486f1fc3d096880b9c5a8759891b7537e50 (diff) | |
| download | aports-85d8f7ea2953cd45482a8db01caeb4dd07ecebda.tar.bz2 aports-85d8f7ea2953cd45482a8db01caeb4dd07ecebda.tar.xz | |
testing/drawterm: fix off by one in devmouse
Diffstat (limited to 'testing/drawterm/fix-off-by-one.patch')
| -rw-r--r-- | testing/drawterm/fix-off-by-one.patch | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/testing/drawterm/fix-off-by-one.patch b/testing/drawterm/fix-off-by-one.patch new file mode 100644 index 0000000000..a1b6d5dc33 --- /dev/null +++ b/testing/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; |
