Mercurial > noffle
diff src/control.c @ 287:01755687c565 noffle
[svn] * src/configfile.c: Change snprintf() to Utl_cpyStr();
* src/configfile.c,src/fetch.c,src/fetchlist.c,src/protocol.c,
src/server.c: Replace strcpy() with Utl_cpyStr() where appropriate.
See Debian bug 168128.
* src/client.c. Replace strcpy() here too.
* src/configfile.h,src/configfile.c,docs/noffle.conf.5: Add noffle-user
and noffle-group configs.
* src/control.c,src/configfile.c,src/noffle.c: Replace [s]scanf("%s")
with [s]scanf(MAXCHAR_FMT).
author | bears |
---|---|
date | Fri, 10 Jan 2003 23:11:43 +0000 |
parents | ffb1848a39db |
children | 21300895412f |
line wrap: on
line diff
--- a/src/control.c Fri Jan 10 23:08:17 2003 +0000 +++ b/src/control.c Fri Jan 10 23:11:43 2003 +0000 @@ -1,7 +1,7 @@ /* control.c - $Id: control.c 342 2001-12-09 12:31:57Z bears $ + $Id: control.c 419 2003-01-10 23:11:43Z bears $ */ #if HAVE_CONFIG_H @@ -54,7 +54,7 @@ Str grp; int no; - if ( sscanf( ref, "%s:%d", grp, &no ) != 2 ) + if ( sscanf( ref, MAXCHAR_FMT ":%d", grp, &no ) != 2 ) break; if ( Grp_exists( grp ) )