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

« back to all changes in this revision

Viewing changes to src/wmsession.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:
143
143
    if (fputc('"', f) == EOF)
144
144
        return -1;
145
145
    while (*s) {
146
 
        if (*s >= '0' && *s <= '9' ||
147
 
            *s >= 'a' && *s <= 'z' ||
148
 
            *s >= 'A' && *s <= 'Z' ||
149
 
            *s == '_' || *s == '-' ||
150
 
            *s == '.' || *s == ':')
 
146
        if ((*s >= '0' && *s <= '9') ||
 
147
            (*s >= 'a' && *s <= 'z') ||
 
148
            (*s >= 'A' && *s <= 'Z') ||
 
149
            *s == '_' ||
 
150
            *s == '-' ||
 
151
            *s == '.' ||
 
152
            *s == ':')
151
153
        {
152
154
            if (fputc(*s, f) == EOF)
153
155
                return -1;
190
192
 
191
193
            sscanf(s, "%02X", &i);
192
194
            s += 2;
193
 
            c = i & 0xFF;
 
195
            c = (char)(i & 0xFF);
194
196
        }
195
197
        *d++ = c;
196
198
        c = *s++;