various code cleanup:
[obnox/wireshark/wip.git] / epan / dissectors / packet-pflog.c
index 2412068a8d89e25e1afef4e20130efb7109e3f95..197b166a6c890c599e59bdeca6c610ca4f7f6f6d 100644 (file)
@@ -180,10 +180,10 @@ dissect_pflog(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
   hdrlen = BPF_WORDALIGN(pflogh.length);
 
   if (pflogh.subrulenr == (guint32) -1)
-    snprintf(rulestr, sizeof(rulestr), "%u",
+    g_snprintf(rulestr, sizeof(rulestr), "%u",
              pflogh.rulenr);
   else
-    snprintf(rulestr, sizeof(rulestr), "%u.%s.%u",
+    g_snprintf(rulestr, sizeof(rulestr), "%u.%s.%u",
              pflogh.rulenr, pflogh.ruleset, pflogh.subrulenr);
 
   if (hdrlen < MIN_PFLOG_HDRLEN) {