summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorWayne Davison <wayned@samba.org>2005-05-03 17:04:26 +0000
committerWayne Davison <wayned@samba.org>2005-05-03 17:04:26 +0000
commitd8c4d6de1089623cb7d8c0050bacd68ff74f1aa2 (patch)
tree0668ee5bcdb3e51d157c02443d43b69a33a11957 /main.c
parent74ba98a51be607516c80c2289e55ed66cc9fa52f (diff)
downloadrsync-d8c4d6de1089623cb7d8c0050bacd68ff74f1aa2.tar.gz
Use new MAX_SERVER_ARGS define instead of hard-wired "100".
Diffstat (limited to 'main.c')
-rw-r--r--main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.c b/main.c
index 4cc1d3c1..f589aa30 100644
--- a/main.c
+++ b/main.c
@@ -296,7 +296,7 @@ static pid_t do_cmd(char *cmd, char *machine, char *user, char *path,
for (tok = strtok(cmd, " "); tok; tok = strtok(NULL, " ")) {
/* Comparison leaves rooms for server_options(). */
- if (argc >= MAX_ARGS - 100) {
+ if (argc >= MAX_ARGS - MAX_SERVER_ARGS) {
rprintf(FERROR, "internal: args[] overflowed in do_cmd()\n");
exit_cleanup(RERR_SYNTAX);
}