Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
74ba98a
)
Use new MAX_SERVER_ARGS define instead of hard-wired "100".
author
Wayne Davison
<wayned@samba.org>
Tue, 3 May 2005 17:04:26 +0000
(17:04 +0000)
committer
Wayne Davison
<wayned@samba.org>
Tue, 3 May 2005 17:04:26 +0000
(17:04 +0000)
main.c
patch
|
blob
|
blame
|
history
diff --git
a/main.c
b/main.c
index
4cc1d3c
..
f589aa3
100644
(file)
--- 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);
}