autowiz fix

Quick fix to autowiz not updating.
This commit is contained in:
Jason "Opie" Babo 2015-04-17 15:24:32 +01:00
parent 7b09f99adb
commit d012fb8c01

View file

@ -198,6 +198,7 @@ void run_autowiz(void)
if (CONFIG_USE_AUTOWIZ) {
size_t res;
char buf[256];
int i;
#if defined(CIRCLE_UNIX)
res = snprintf(buf, sizeof(buf), "nice ../bin/autowiz %d %s %d %s %d &",
@ -211,6 +212,7 @@ void run_autowiz(void)
if (res < sizeof(buf)) {
mudlog(CMP, LVL_IMMORT, FALSE, "Initiating autowiz.");
reboot_wizlists();
i = system(buf);
} else
log("Cannot run autowiz: command-line doesn't fit in buffer.");
}