From 71fc2a42aeb7ba09af6e1bffa364e432d4f5171e Mon Sep 17 00:00:00 2001 From: Alexander Aksenov Date: Sat, 9 Feb 2013 19:29:03 +0400 Subject: [PATCH] Fix getting char from va_args --- driver/events.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/driver/events.h b/driver/events.h index 0f34ec5..8be66b5 100644 --- a/driver/events.h +++ b/driver/events.h @@ -152,7 +152,7 @@ static char *PackArguments (char *pBuffer, unsigned long nLen, const char *szFor } #ifdef __KERNEL__ if((void *)s < (void *)TASK_SIZE) { - const char __user *S = (const char __user *) va_arg (args, const char *); + const char __user *S = (const char __user *) s; nLengthOfString = strlen_user (S); if(nFree < nLengthOfString) return NULL; // no space for arg -- 2.7.4