X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=KernelLand%2FModules%2FIPStack%2Finterface.c;h=c6ec2b3d286d7c63a99b68bd41ed89bcae1aa38a;hb=3f9b3f4cb91ce4ada9c892e6f2a3c69dbb9debd6;hp=6f357134367d2ce340bafc37f43bd1061fe8d906;hpb=107a87368c3786c1be3c2bfaa0ba6ede956971c5;p=tpg%2Facess2.git diff --git a/KernelLand/Modules/IPStack/interface.c b/KernelLand/Modules/IPStack/interface.c index 6f357134..c6ec2b3d 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( @@ -304,7 +304,7 @@ tInterface *IPStack_AddInterface(const char *Device, int Type, const char *Name) */ int IPStack_AddFile(tSocketFile *File) { - Log_Log("IPStack", "Added file '%s'", File->Name); +// Log_Log("IPStack", "Added file '%s'", File->Name); File->Next = gIP_FileTemplates; gIP_FileTemplates = File; return 0;