aboutsummaryrefslogtreecommitdiff
path: root/tool/lemon.c
diff options
context:
space:
mode:
Diffstat (limited to 'tool/lemon.c')
-rw-r--r--tool/lemon.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tool/lemon.c b/tool/lemon.c
index 25787abf8..c4adc2086 100644
--- a/tool/lemon.c
+++ b/tool/lemon.c
@@ -75,11 +75,11 @@ static void lemon_addtext(
int iWidth /* Field width. Negative to left justify */
){
if( nIn<0 ) for(nIn=0; zIn[nIn]; nIn++){}
- while( iWidth>nIn ){ zBuf[*(pnUsed++)] = ' '; iWidth--; }
+ while( iWidth>nIn ){ zBuf[(*pnUsed)++] = ' '; iWidth--; }
if( nIn==0 ) return;
memcpy(&zBuf[*pnUsed], zIn, nIn);
*pnUsed += nIn;
- while( (-iWidth)>nIn ){ zBuf[*(pnUsed++)] = ' '; iWidth++; }
+ while( (-iWidth)>nIn ){ zBuf[(*pnUsed)++] = ' '; iWidth++; }
zBuf[*pnUsed] = 0;
}
static int lemon_vsprintf(char *str, const char *zFormat, va_list ap){