diff --git a/src/xpdev/truncsp.c b/src/xpdev/truncsp.c index f0c6ad9be419b99eb23cce8fc3c352ba0345d125..880f1688712246f0db7d8935f832a65023c942a0 100644 --- a/src/xpdev/truncsp.c +++ b/src/xpdev/truncsp.c @@ -43,7 +43,7 @@ static char* truncsp(char* str) unsigned c; c=strlen(str); - while(c && (str[c-1]==' ' || str[c-1]=='\t' || str[c-1]=='\r' || str[c-1]=='\n') c--; + while(c && (str[c-1]==' ' || str[c-1]=='\t' || str[c-1]=='\r' || str[c-1]=='\n')) c--; str[c]=0; return(str);