diff options
author | Lizzy Fleckenstein <lizzy@vlhl.dev> | 2024-06-19 20:50:41 +0200 |
---|---|---|
committer | Lizzy Fleckenstein <lizzy@vlhl.dev> | 2024-06-19 20:50:41 +0200 |
commit | 47984162974a8f7d9903d352567005ac569c5a87 (patch) | |
tree | ab265785ceaae0585aec80f6d5209e6289cbefd3 /include/net.h | |
parent | 9720c7efddf2d7595c9a0b021bc5fc6327c22bcf (diff) | |
download | silly_game-47984162974a8f7d9903d352567005ac569c5a87.tar.xz |
client: receive and display player list
Signed-off-by: Lizzy Fleckenstein <lizzy@vlhl.dev>
Diffstat (limited to 'include/net.h')
-rw-r--r-- | include/net.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net.h b/include/net.h index ce2eb02..08c566a 100644 --- a/include/net.h +++ b/include/net.h @@ -46,7 +46,7 @@ typedef struct { ser_pkt_type(&pkt, TYPE); \ __VA_ARGS__ \ if (!peer_send(&(CONN), pkt.data, pkt.len)) \ - fprintf(stderr, "failed to send " #TYPE " to %*s\n", PSTR(*(CONN).name)); \ + fprintf(stderr, "failed to send " #TYPE " to %.*s\n", PSTR(*(CONN).name)); \ free(pkt.data); } void invalid_pkt(peer *p, str pkt); |