From: John Hodge Date: Mon, 28 Jan 2013 10:52:36 +0000 (+0800) Subject: Modules/IPStack - Fixed use of sprintf(NULL,...) X-Git-Tag: rel0.15~597^2~2 X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;ds=sidebyside;h=579644561cf087fff0719c6c11685bbe48b07a71;p=tpg%2Facess2.git Modules/IPStack - Fixed use of sprintf(NULL,...) --- diff --git a/KernelLand/Modules/IPStack/interface.c b/KernelLand/Modules/IPStack/interface.c index 6f357134..9a47ba70 100644 --- a/KernelLand/Modules/IPStack/interface.c +++ b/KernelLand/Modules/IPStack/interface.c @@ -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(