blob: 0242247e4fe8c60ebf836cafc7d1fcf9794229cb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
--- xtrlock.c 1997-10-22 12:32:28.000000000 +0200
+++ xtrlock.c 2003-04-08 19:41:12.000000000 +0200
@@ -14,6 +14,9 @@
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
+ *
+ * .. overflow bug patched by srakyi (http://srakyi.modry.cz) - no warranty
+ *
*/
#include <X11/X.h>
@@ -191,8 +194,10 @@
break;
default:
if (clen != 1) break;
- if (rlen < sizeof(rbuf)) rbuf[rlen]= cbuf[0];
- rlen++;
+ if (rlen < sizeof(rbuf)) {
+ rbuf[rlen]= cbuf[0];
+ rlen++;
+ }
break;
}
break;
|