From: Markus Armbruster Date: Sun, 25 Nov 2007 14:06:53 +0000 (+0000) Subject: (execute): Use player->comtail[1] instead of player->argp[1]. This X-Git-Tag: v4.3.11~84 X-Git-Url: http://git.pond.sub.org/?p=empserver;a=commitdiff_plain;h=69832255;hp=90631d56ed7926ba9b391f81910ef6e4b63f0041 (execute): Use player->comtail[1] instead of player->argp[1]. This makes execute send everything after the command back to the client verbatim, not just the first argument (with quotes and funny characters stripped). The client always expected that, and got confused when the server sent something else. --- diff --git a/src/lib/player/player.c b/src/lib/player/player.c index 8d3762c45..89f63a7d0 100644 --- a/src/lib/player/player.c +++ b/src/lib/player/player.c @@ -278,8 +278,10 @@ execute(void) failed = 0; redir = NULL; - /* FIXME should use raw argument here, to support UTF-8 file names */ - p = getstarg(player->argp[1], "File? ", buf); + if (player->comtail[1]) + p = player->comtail[1]; + else + p = getstring("File? ", buf); if (p == NULL || *p == '\0') return RET_SYN; prexec(p);