X-Git-Url: http://www.wagner.pp.ru/gitweb/?p=oss%2Fcatdoc.git;a=blobdiff_plain;f=src%2Fsubstmap.c;h=6e289243b524c6b1fca3fdb51f86abd0e65c6ac9;hp=f29d62915c4f5bde1485031796fa7c5435823df4;hb=35d0d9bcbb33b64c3cfd83548fc9fc1cbdb5295e;hpb=51f0f8ed69b065cd2577a27c2a2911cdda243b99 diff --git a/src/substmap.c b/src/substmap.c index f29d629..6e28924 100644 --- a/src/substmap.c +++ b/src/substmap.c @@ -39,7 +39,7 @@ SUBSTMAP read_substmap(char* filename) { char s[256]; char stopchar; int escaped, lineno=0, i; - unsigned int uc; + int32_t uc; path=find_file(filename,add_exe_path(map_path)); if (!path) { free(map); @@ -78,7 +78,7 @@ SUBSTMAP read_substmap(char* filename) { } /* skip space between code and sequence */ for(;*p && isspace(*p);p++); - if (!p) continue; + if (!*p) continue; switch (*p) { case '\'': case '"':