case OPT_WRITE_BATCH:
/* batch_name is already set */
write_batch = 1;
-@@ -1840,6 +1866,11 @@ void server_options(char **args, int *argc_p)
-
- argstr[x] = '\0';
-
-+ if (x > (int)sizeof argstr) { /* Not possible... */
-+ rprintf(FERROR, "argstr overflow in server_options().\n");
-+ exit_cleanup(RERR_MALLOC);
-+ }
-+
- args[ac++] = argstr;
-
- #ifdef ICONV_OPTION
-@@ -2061,6 +2092,16 @@ void server_options(char **args, int *argc_p)
+@@ -2062,6 +2088,16 @@ void server_options(char **args, int *argc_p)
else if (remove_source_files)
args[ac++] = "--remove-sent-files";