summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/unit/plugins/irc/test-irc-protocol.cpp2
-rw-r--r--tests/unit/plugins/irc/test-irc-server.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/unit/plugins/irc/test-irc-protocol.cpp b/tests/unit/plugins/irc/test-irc-protocol.cpp
index 38dbd87a0..7fdeb037a 100644
--- a/tests/unit/plugins/irc/test-irc-protocol.cpp
+++ b/tests/unit/plugins/irc/test-irc-protocol.cpp
@@ -369,7 +369,7 @@ TEST_GROUP(IrcProtocolWithServer)
snprintf (str_command, sizeof (str_command),
"/command -buffer irc.server." IRC_FAKE_SERVER " irc "
- "/server fakerecv %s",
+ "/server fakerecv \"%s\"",
command);
run_cmd_quiet (str_command);
diff --git a/tests/unit/plugins/irc/test-irc-server.cpp b/tests/unit/plugins/irc/test-irc-server.cpp
index e2a33e155..db7a12c24 100644
--- a/tests/unit/plugins/irc/test-irc-server.cpp
+++ b/tests/unit/plugins/irc/test-irc-server.cpp
@@ -1048,7 +1048,7 @@ TEST_GROUP(IrcServerConnected)
snprintf (str_command, sizeof (str_command),
"/command -buffer irc.server." IRC_FAKE_SERVER " irc "
- "/server fakerecv %s",
+ "/server fakerecv \"%s\"",
command);
run_cmd_quiet (str_command);
}