Fix various errors uncovered by static analysis

Reported-by: Carlos Montiers <cmontiers@gmail.com>
This commit is contained in:
Thomas Preud'homme
2014-03-08 18:36:02 +08:00
parent ba286136bf
commit fdb3b10d06
4 changed files with 2 additions and 5 deletions

View File

@ -276,7 +276,7 @@ ST_FUNC char *get_tok_str(int v, CValue *cv)
#ifdef _WIN32
sprintf(p, "%u", (unsigned)cv->ull);
#else
sprintf(p, "%Lu", cv->ull);
sprintf(p, "%llu", cv->ull);
#endif
break;
case TOK_LCHAR: