~cmiller/ubuntu/trusty/icewm/translations-cause-crash-lp447883

« back to all changes in this revision

Viewing changes to src/yurl.cc

  • Committer: Bazaar Package Importer
  • Author(s): Eduard Bloch
  • Date: 2009-01-26 00:18:14 UTC
  • mfrom: (1.3.1 upstream) (5.1.1 sid)
  • Revision ID: james.westby@ubuntu.com-20090126001814-ea5ceoy4uroruz72
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
91
91
 
92
92
                if ((a = BinAscii::unhex(s[1])) != -1 &&
93
93
                    (b = BinAscii::unhex(s[2])) != -1) {
94
 
                    *s = ((a << 4) + b);
 
94
                    *s = (char)((a << 4) + b);
95
95
                    memmove(s + 1, s + 3, strlen(s + 3) + 1);
96
96
                } else
97
97
                    warn(_("Not a hexadecimal number: %c%c (in \"%s\")"),