From: David Schleef Date: Wed, 9 Aug 2000 21:04:41 +0000 (+0000) Subject: sscanf->strtol X-Git-Tag: r0_7_10~8 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=713519ccfecc610a93c8477fa7d46e4c10f25db7;p=comedilib.git sscanf->strtol --- diff --git a/lib/comedi.c b/lib/comedi.c index f4d7aa5..009b860 100644 --- a/lib/comedi.c +++ b/lib/comedi.c @@ -44,7 +44,7 @@ void initialize(void) __comedi_init=1; if( (s=getenv("COMEDILIB_LOGLEVEL")) ){ - sscanf(s,"%d",&__comedi_loglevel); + __comedi_loglevel=strtol(s,NULL,10); fprintf(stderr,"setting loglevel to %d\n",__comedi_loglevel); } }