Expand the first argument of the ``log'' command if it's a variable.

This commit is contained in:
brian 2001-11-22 04:23:49 +00:00
parent f2262a32b9
commit 977fe74400

View File

@ -365,7 +365,7 @@ LogCommand(struct cmdargs const *arg)
argc = sizeof argv / sizeof argv[0] - 1;
log_Printf(LogWARN, "Truncating log command to %d args\n", argc);
}
command_Expand(argv, argc, arg->argv + arg->argn, arg->bundle, 0, getpid());
command_Expand(argv, argc, arg->argv + arg->argn, arg->bundle, 1, getpid());
Concatinate(buf, sizeof buf, argc, (const char *const *)argv);
log_Printf(LogLOG, "%s\n", buf);
command_Free(argc, argv);