diff options
author | Glenn Strauss <gstrauss@gluelogic.com> | 2019-11-23 12:19:15 -0500 |
---|---|---|
committer | Glenn Strauss <gstrauss@gluelogic.com> | 2020-01-26 00:41:05 -0500 |
commit | aaccb1bc5e85c3f9bb4e1f0891002703699f8854 (patch) | |
tree | 1b0e06a4f0bd305bb9727e2c4357d644cbf6c3f0 /src/lemon.c | |
parent | f4a5a09d96709cd22638eb844274efef4f7000ea (diff) | |
download | lighttpd-git-aaccb1bc5e85c3f9bb4e1f0891002703699f8854.tar.gz |
[multiple] address coverity warnings
Diffstat (limited to 'src/lemon.c')
-rw-r--r-- | src/lemon.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lemon.c b/src/lemon.c index ad86cee2..77d7ad47 100644 --- a/src/lemon.c +++ b/src/lemon.c @@ -2215,7 +2215,7 @@ to follow the previous rule."); case WAITING_FOR_DESTRUCTOR_SYMBOL: if( !isalpha(x[0]) ){ ErrorMsg(psp->filename,psp->tokenlineno, - "Symbol name missing after %destructor keyword"); + "Symbol name missing after %%destructor keyword"); psp->errorcnt++; psp->state = RESYNC_AFTER_DECL_ERROR; }else{ @@ -2228,7 +2228,7 @@ to follow the previous rule."); case WAITING_FOR_DATATYPE_SYMBOL: if( !isalpha(x[0]) ){ ErrorMsg(psp->filename,psp->tokenlineno, - "Symbol name missing after %destructor keyword"); + "Symbol name missing after %%destructor keyword"); psp->errorcnt++; psp->state = RESYNC_AFTER_DECL_ERROR; }else{ @@ -2343,14 +2343,14 @@ struct lemon *gp; rewind(fp); filebuf = (char *)malloc( filesize+1 ); if( filebuf==0 ){ - ErrorMsg(ps.filename,0,"Can't allocate %d of memory to hold this file.", + ErrorMsg(ps.filename,0,"Can't allocate %zu of memory to hold this file.", filesize+1); fclose(fp); gp->errorcnt++; return; } if( fread(filebuf,1,filesize,fp)!=filesize ){ - ErrorMsg(ps.filename,0,"Can't read in all %d bytes of this file.", + ErrorMsg(ps.filename,0,"Can't read in all %zu bytes of this file.", filesize); free(filebuf); fclose(fp); |