[lwatch-cvs] files/src acolors.c,1.10,1.11
Brought to you by:
arturcz
|
From: <os...@us...> - 2004-01-13 14:10:35
|
Update of /cvsroot/lwatch/files/src
In directory sc8-pr-cvs1:/tmp/cvs-serv14614
Modified Files:
acolors.c
Log Message:
Fixed behaviour when atoi returns -1.
Index: acolors.c
===================================================================
RCS file: /cvsroot/lwatch/files/src/acolors.c,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -d -r1.10 -r1.11
*** acolors.c 10 Nov 2003 01:15:05 -0000 1.10
--- acolors.c 13 Jan 2004 14:10:33 -0000 1.11
***************
*** 118,121 ****
--- 118,122 ----
numer[2]='\0';
val=atoi(numer);
+ if (val<0) val=0;
if(val) {
col_stack[++col_stack_ptr]=val;
|