Blob Blame History Raw
diff -urp pads-1.2.orig/src/util.c pads-1.2/src/util.c
--- pads-1.2.orig/src/util.c	2008-06-30 17:54:33.000000000 -0400
+++ pads-1.2/src/util.c	2008-06-30 17:27:44.000000000 -0400
@@ -465,7 +465,7 @@ hex2mac(const char *mac)
 {
     static char buf[18];
 
-    sprintf(buf, "%X:%02X:%02X:%02X:%02X:%02X",
+    snprintf(buf, sizeof(buf), "%02X:%02X:%02X:%02X:%02X:%02X",
         mac[0], mac[1], mac[2],
         mac[3], mac[4], mac[5]);