summaryrefslogtreecommitdiff
path: root/server.c
diff options
context:
space:
mode:
authorJohnny Richard <johnny@johnnyrichard.com>2022-04-22 00:52:53 +0200
committerJohnny Richard <johnny@johnnyrichard.com>2022-04-22 01:00:51 +0200
commite3585f9080a2083080ebf3c8efc45a63123d4a8d (patch)
tree63e45288949e22bb580559e356cf812c0d1dc609 /server.c
parent2269e8904b56ae0dd80461cc7a0507862b33e34e (diff)
string_view: Add string_view format macros
Diffstat (limited to 'server.c')
-rw-r--r--server.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/server.c b/server.c
index b7c70cb..4ada741 100644
--- a/server.c
+++ b/server.c
@@ -246,7 +246,7 @@ server_on_ping_msg(server_t *server,
client_t *client,
string_view_t msg)
{
- client_send_msg(client, "PONG %.*s\n", msg.size, msg.data);
+ client_send_msg(client, "PONG "SVFMT"\n", SVARG(&msg));
}
static void