opnsense-ports/chinese/gcin/files/patch-gtab-buf.cpp
Franco Fichtner a9432663d5 */*: sync with upstream
Taken from: HardenedBSD
2018-05-22 08:51:30 +02:00

11 lines
435 B
C++

--- gtab-buf.cpp.orig 2018-05-21 12:35:13 UTC
+++ gtab-buf.cpp
@@ -1242,7 +1242,7 @@ gboolean gtab_pre_select_shift(KeySym key, int kbstate
// If the key(123) is not defined as gtab keys, the shift keys(!@#) should be used for punc, not preselect
int c;
char *p;
- if (p=strchr(cur_inmd->selkey, key)) {
+ if ((p=strchr(cur_inmd->selkey, key))) {
c = p - cur_inmd->selkey;
return gtab_pre_select_idx(c);
} else