diff --git a/epan/dissectors/packet-ntp.c b/epan/dissectors/packet-ntp.c index 287088b1b9..77729d87aa 100644 --- a/epan/dissectors/packet-ntp.c +++ b/epan/dissectors/packet-ntp.c @@ -1254,7 +1254,7 @@ dissect_ntp_std(tvbuff_t *tvb, packet_info *pinfo, proto_tree *ntp_tree, ntp_con */ buff = (gchar *)wmem_alloc(wmem_packet_scope(), NTP_TS_SIZE); if (stratum <= 1) { - g_snprintf (buff, NTP_TS_SIZE, "Unidentified reference source '%.4s'", + g_snprintf (buff, NTP_TS_SIZE, "Unidentified reference source '%s'", tvb_get_string_enc(wmem_packet_scope(), tvb, 12, 4, ENC_ASCII)); for (i = 0; primary_sources[i].id; i++) { if (tvb_memeql(tvb, 12, primary_sources[i].id, 4) == 0) {