xargs: fix compilation breakage
authorDenys Vlasenko <vda.linux@googlemail.com>
Thu, 27 Feb 2014 14:02:36 +0000 (15:02 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Thu, 27 Feb 2014 14:02:36 +0000 (15:02 +0100)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
findutils/xargs.c

index ed6dbd33e841bdcd4393290a64edf3c0d93d9ad7..0ba5b566d9eb9f39468ac43e796135aa3219de13 100644 (file)
@@ -373,7 +373,7 @@ static char* FAST_FUNC process_stdin_with_replace(int n_max_chars, int n_max_arg
                                char *arg = G.argv[i];
                                int count = count_strstr(arg, G.repl_str);
                                if (count != 0)
-                                       arg = xmalloc_substitute_string(arg, count, G.repl_str, s);
+                                       arg = xmalloc_substitute_string(arg, count, G.repl_str, buf);
                                store_param(arg);
                                dbg_msg("args[]:'%s'", arg);
                                i++;