Fix wrong number of bytes.
authorMikko Värri <vmj@linuxbox.fi>
Sat, 27 Aug 2011 00:10:37 +0000 (03:10 +0300)
committerMikko Värri <vmj@linuxbox.fi>
Sat, 27 Aug 2011 00:10:37 +0000 (03:10 +0300)
genmac.c

index 8098ac3..38510db 100644 (file)
--- a/genmac.c
+++ b/genmac.c
@@ -111,7 +111,7 @@ main(int argc, char** argv)
                 byte |= 1;
 
         printf("%02x", byte);
-        for (int i = 0; i < config.count; i++)
+        for (int i = 1; i < config.count; i++)
                 printf(":%02x", (uint8_t)rand());
         printf("\n");