snprintf -> g_snprintf
authorstig <stig@f5534014-38df-0310-8fa8-9805f1628bb7>
Sun, 3 Feb 2008 16:03:33 +0000 (16:03 +0000)
committerstig <stig@f5534014-38df-0310-8fa8-9805f1628bb7>
Sun, 3 Feb 2008 16:03:33 +0000 (16:03 +0000)
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@24260 f5534014-38df-0310-8fa8-9805f1628bb7

editcap.c

index 53a184656d473e33c7c4f2962ff12ec1cc8152e1..dc0739d6748a998155aade61fdae05e466fc69bd 100644 (file)
--- a/editcap.c
+++ b/editcap.c
@@ -624,7 +624,7 @@ int main(int argc, char *argv[])
       if (!filename) {
         exit(5);
       }
-      snprintf(filename, filenamelen, "%s-%05d", argv[optind+1], 0);
+      g_snprintf(filename, filenamelen, "%s-%05d", argv[optind+1], 0);
     } else {
       filename = argv[optind+1];
     }
@@ -653,7 +653,7 @@ int main(int argc, char *argv[])
           exit(1);
         }
 
-        snprintf(filename, filenamelen, "%s-%05d",argv[optind+1], count / split_packet_count);
+        g_snprintf(filename, filenamelen, "%s-%05d",argv[optind+1], count / split_packet_count);
 
         if (verbose) {
           fprintf(stderr, "Continuing writing in file %s\n", filename);