summaryrefslogtreecommitdiffstats
path: root/patches/procps-3.2.8/20_watch_8bitchar.dpatch
blob: 1be95dddadd5a1c5f79a9ef92c002313f25d4e91 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#! /bin/sh /usr/share/dpatch/dpatch-run
## 20_watch_8bitchar.dpatch by  <csmall@debian.org>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: Make char unsigned

@DPATCH@
diff -urNad procps-3.2.8~/watch.c procps-3.2.8/watch.c
--- procps-3.2.8~/watch.c	2009-05-11 22:20:14.000000000 +1000
+++ procps-3.2.8/watch.c	2009-05-11 22:22:52.000000000 +1000
@@ -297,7 +297,7 @@
 				move(y, x);
 				if (option_differences) {
 					chtype oldch = inch();
-					char oldc = oldch & A_CHARTEXT;
+					unsigned char oldc = oldch & A_CHARTEXT;
 					attr = !first_screen
 					    && ((char)c != oldc
 						||