From ec2e326207e99df39b943940d28cbcba7b9a830c Mon Sep 17 00:00:00 2001 From: Doug MacEachern Date: Sat, 8 Oct 2005 02:05:41 +0000 Subject: [PATCH] dont step out-of-bounds in hwaddr_lookup --- src/sigar_win32ish.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sigar_win32ish.c b/src/sigar_win32ish.c index 01971917..b7363e71 100644 --- a/src/sigar_win32ish.c +++ b/src/sigar_win32ish.c @@ -86,7 +86,7 @@ static void hwaddr_lookup(sigar_net_interface_config_t *ifconfig, int num) memset(&ncb.ncb_callname[1], ' ', sizeof(ncb.ncb_callname)-1); - ncb.ncb_callname[sizeof(ncb.ncb_callname)] = '\0'; + ncb.ncb_callname[sizeof(ncb.ncb_callname)-1] = '\0'; ncb.ncb_buffer = (unsigned char *)&adapter; ncb.ncb_length = sizeof(adapter);