]> git.pond.sub.org Git - empserver/blobdiff - src/lib/commands/navi.c
Avoid false positive generation oops in navigate and march
[empserver] / src / lib / commands / navi.c
index fec4bb8c0c75fa901d7e80c304d8a07e3960a119..cc5d51dbded17d3cf380a9c48f3b38db2fb47d0f 100644 (file)
@@ -76,7 +76,6 @@ do_unit_move(struct emp_qelem *ulist, int *together,
     int skip = 0;
     char buf[1024];
     char prompt[128];
-    char scanspace[1024];
     char pathtaken[1024];  /* Doubtful we'll have a path longer than this */
     char *pt = pathtaken;
     char bmap_flag;
@@ -176,7 +175,7 @@ do_unit_move(struct emp_qelem *ulist, int *together,
            cp++;
            continue;
        }
-       ac = parse(cp, scanspace, player->argp, NULL, NULL, NULL);
+       ac = parse(cp, player->argbuf, player->argp, NULL, NULL, NULL);
        if (ac <= 0) {
            player->argp[0] = "";
            cp = NULL;