Modules/IPStack - Fixed use of sprintf(NULL,...)
authorJohn Hodge <[email protected]>
Mon, 28 Jan 2013 10:52:36 +0000 (18:52 +0800)
committerJohn Hodge <[email protected]>
Mon, 28 Jan 2013 10:52:36 +0000 (18:52 +0800)
KernelLand/Modules/IPStack/interface.c

index 6f35713..9a47ba7 100644 (file)
@@ -231,7 +231,7 @@ tInterface *IPStack_AddInterface(const char *Device, int Type, const char *Name)
        }
        else
        {
-               nameLen = sprintf(NULL, "%i", giIP_NextIfaceId);
+               nameLen = snprintf(NULL, 0, "%i", giIP_NextIfaceId);
        }
 
        iface = malloc(

UCC git Repository :: git.ucc.asn.au