Modules/IPStack - Fixed use of sprintf(NULL,...)
[tpg/acess2.git] / 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