Mercurial > noffle
diff src/protocol.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 | baa6408d1bbc |
children | 4426f4dc6e8b |
line wrap: on
line diff
--- a/src/protocol.c Fri Jan 10 23:08:17 2003 +0000 +++ b/src/protocol.c Fri Jan 10 23:11:43 2003 +0000 @@ -1,7 +1,7 @@ /* protocol.c - $Id: protocol.c 414 2003-01-06 18:16:18Z bears $ + $Id: protocol.c 419 2003-01-10 23:11:43Z bears $ */ #if HAVE_CONFIG_H @@ -112,10 +112,10 @@ if ( buf[ 1 ] == 0 ) return FALSE; else - strcpy( line, buf + 1 ); + Utl_cpyStr( line, buf + 1 ); } else - strcpy( line, buf ); + Utl_cpyStr( line, buf ); return TRUE; } @@ -204,9 +204,9 @@ if ( *p == ':' ) { ++p; - strcpy( t, line + ( p - lineLower ) ); + Utl_cpyStr( t, line + ( p - lineLower ) ); p = Utl_stripWhiteSpace( t ); - strcpy( resultValue, p ); + Utl_cpyStr( resultValue, p ); return TRUE; } else return FALSE; /* Not a header line */