fix typo.
[vuplus_openvuplus_3.0] / meta-openvuplus / recipes-base / tuxcom / tuxbox-tuxcom-32bpp / fix_smstext.diff
1 diff -Naur tuxcom/tuxcom.c tuxcom.smstxt/tuxcom.c
2 --- tuxcom/tuxcom.c     2009-01-07 17:03:26.000000000 +0100
3 +++ tuxcom.smstxt/tuxcom.c      2009-01-09 19:17:00.000000000 +0100
4 @@ -2611,11 +2611,11 @@
5                                                         }
6                                                 }
7                                                 prev_key = rccode;
8 -                                               pch = strchr(numberchars[rccode],tolower(szdst[pos]));
9 -                                               if (pch == NULL) szdst[pos] = (textuppercase == 0 ? numberchars[rccode][0] : toupper(numberchars[rccode][0]));
10 +                                               pch = strchr(numberchars[rccode-48],tolower(szdst[pos]));
11 +                                               if (pch == NULL) szdst[pos] = (textuppercase == 0 ? numberchars[rccode-48][0] : toupper(numberchars[rccode-48][0]));
12                                                 else
13                                                 {
14 -                                                       if (pch == &(numberchars[rccode][strlen(numberchars[rccode])-1])) szdst[pos] = (textuppercase == 0 ? numberchars[rccode][0]: toupper(numberchars[rccode][0]));
15 +                                                       if (pch == &(numberchars[rccode-48][strlen(numberchars[rccode-48])-1])) szdst[pos] = (textuppercase == 0 ? numberchars[rccode-48][0]: toupper(numberchars[rccode-48][0]));
16                                                         else szdst[pos] = (textuppercase == 0 ? *((char*)pch+1) : toupper(*((char*)pch+1)));
17                                                 }
18                                         }
19 diff -Naur tuxcom/tuxcom.h tuxcom.smstxt/tuxcom.h
20 --- tuxcom/tuxcom.h     2009-01-07 17:03:26.000000000 +0100
21 +++ tuxcom.smstxt/tuxcom.h      2009-01-09 19:17:00.000000000 +0100
22 @@ -80,16 +80,16 @@
23  #define MSG_COPYRIGHT  "© dbluelle 2004-2007"
24  
25  // rc codes
26 -#define        RC_0                    '0'
27 -#define        RC_1                    '1'
28 -#define        RC_2                    '2'
29 -#define        RC_3                    '3'
30 -#define        RC_4                    '4'
31 -#define        RC_5                    '5'
32 -#define        RC_6                    '6'
33 -#define        RC_7                    '7'
34 -#define        RC_8                    '8'
35 -#define        RC_9                    '9'
36 +#define        RC_0                    0x30
37 +#define        RC_1                    0x31
38 +#define        RC_2                    0x32
39 +#define        RC_3                    0x33
40 +#define        RC_4                    0x34
41 +#define        RC_5                    0x35
42 +#define        RC_6                    0x36
43 +#define        RC_7                    0x37
44 +#define        RC_8                    0x38
45 +#define        RC_9                    0x39
46  
47  #define        RC_RIGHT        0x0191
48  #define        RC_LEFT         0x0192