Mercurial > noffle
comparison 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 |
comparison
equal
deleted
inserted
replaced
286:6443163104a8 | 287:01755687c565 |
---|---|
1 /* | 1 /* |
2 control.c | 2 control.c |
3 | 3 |
4 $Id: control.c 342 2001-12-09 12:31:57Z bears $ | 4 $Id: control.c 419 2003-01-10 23:11:43Z bears $ |
5 */ | 5 */ |
6 | 6 |
7 #if HAVE_CONFIG_H | 7 #if HAVE_CONFIG_H |
8 #include <config.h> | 8 #include <config.h> |
9 #endif | 9 #endif |
52 for( ref = Itl_first( refs ); ref != NULL; ref = Itl_next( refs ) ) | 52 for( ref = Itl_first( refs ); ref != NULL; ref = Itl_next( refs ) ) |
53 { | 53 { |
54 Str grp; | 54 Str grp; |
55 int no; | 55 int no; |
56 | 56 |
57 if ( sscanf( ref, "%s:%d", grp, &no ) != 2 ) | 57 if ( sscanf( ref, MAXCHAR_FMT ":%d", grp, &no ) != 2 ) |
58 break; | 58 break; |
59 | 59 |
60 if ( Grp_exists( grp ) ) | 60 if ( Grp_exists( grp ) ) |
61 { | 61 { |
62 Cont_read( grp ); | 62 Cont_read( grp ); |