From c113c21a675e40408ad41e9f1970e772a97779d1 Mon Sep 17 00:00:00 2001 From: wpaul Date: Mon, 15 Mar 2004 16:39:03 +0000 Subject: [PATCH] Add vectors for _snprintf() and _vsnprintf() (redirected straight to snprintf() and vsnprintf() in FreeBSD kernel land). This is needed by the Intel Centrino 2200BG driver. Unfortunately, this driver still doesn't work right with Project Evil even with this tweak, but I'm unable to diagnose the problem since I don't have access to a sample card. --- sys/compat/ndis/subr_ntoskrnl.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/compat/ndis/subr_ntoskrnl.c b/sys/compat/ndis/subr_ntoskrnl.c index cb7de097c936..18f5662a79a9 100644 --- a/sys/compat/ndis/subr_ntoskrnl.c +++ b/sys/compat/ndis/subr_ntoskrnl.c @@ -1852,6 +1852,8 @@ image_patch_table ntoskrnl_functbl[] = { { "RtlUnicodeStringToInteger", (FUNC)ntoskrnl_unicode_to_int }, { "sprintf", (FUNC)sprintf }, { "vsprintf", (FUNC)vsprintf }, + { "_snprintf", (FUNC)snprintf }, + { "_vsnprintf", (FUNC)vsnprintf }, { "DbgPrint", (FUNC)ntoskrnl_dbgprint }, { "DbgBreakPoint", (FUNC)ntoskrnl_debugger }, { "strncmp", (FUNC)strncmp },