diff options
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); |