embryo_cc - fix symbol write

this fixes an actual bug coverity found in embryo_cc

fix CID 1039650
This commit is contained in:
Carsten Haitzler 2014-09-01 19:30:16 +09:00
parent ec3c84b61e
commit 0040e00373
1 changed files with 1 additions and 1 deletions

View File

@ -371,7 +371,7 @@ do_symbol(FILE * fbin, char *params, cell opcode)
int len;
unsigned char mclass, type;
for (endptr = params; !sc_isspace(*endptr) && endptr != '\0'; endptr++)
for (endptr = params; (!sc_isspace(*endptr)) && (*endptr != '\0'); endptr++)
/* nothing */ ;
assert(*endptr == ' ');