Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
- Die if we can't edit the release date into NEWS or OLDNEWS.
[rsync/rsync.git]
/
options.c
diff --git
a/options.c
b/options.c
index
05df91e
..
47fdaa3
100644
(file)
--- a/
options.c
+++ b/
options.c
@@
-613,8
+613,9
@@
static char err_buf[200];
void option_error(void)
{
if (!err_buf[0]) {
void option_error(void)
{
if (!err_buf[0]) {
- strcpy(err_buf, "Error parsing options: "
- "option may be supported on client but not on server?\n");
+ strlcpy(err_buf, "Error parsing options: option may "
+ "be supported on client but not on server?\n",
+ sizeof err_buf);
}
rprintf(FERROR, RSYNC_NAME ": %s", err_buf);
}
rprintf(FERROR, RSYNC_NAME ": %s", err_buf);
@@
-832,7
+833,9
@@
int parse_arguments(int *argc, const char ***argv, int frommain)
case OPT_DAEMON:
if (am_daemon) {
case OPT_DAEMON:
if (am_daemon) {
- strcpy(err_buf, "Attempt to hack rsync thwarted!\n");
+ strlcpy(err_buf,
+ "Attempt to hack rsync thwarted!\n",
+ sizeof err_buf);
return 0;
}
poptFreeContext(pc);
return 0;
}
poptFreeContext(pc);