From c5b7850a9a5f19eb0a77bbfefbcb75f0ee79b535 Mon Sep 17 00:00:00 2001 From: aleos89 Date: Mon, 4 Dec 2017 13:26:21 -0500 Subject: [PATCH] Fixed atcommand where parsing * Fixes #2675. * Resolves atcommand where not accepting players with spaces in their name. Thanks to @Tokeiburu! --- src/map/atcommand.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/map/atcommand.cpp b/src/map/atcommand.cpp index 0c52d4a79b..ac57183f47 100644 --- a/src/map/atcommand.cpp +++ b/src/map/atcommand.cpp @@ -513,7 +513,7 @@ ACMD_FUNC(where) nullpo_retr(-1, sd); memset(atcmd_player_name, '\0', sizeof atcmd_player_name); - if (!message || !*message || sscanf(message, "%23s[^\n]", atcmd_player_name) < 1) { + if (!message || !*message || sscanf(message, "%23[^\n]", atcmd_player_name) < 1) { clif_displaymessage(fd, msg_txt(sd,910)); // Please enter a player name (usage: @where ). return -1; }