diff options
author | Alexander Aksenov <a.aksenov@samsung.com> | 2013-02-09 19:29:03 +0400 |
---|---|---|
committer | Alexander Aksenov <a.aksenov@samsung.com> | 2013-02-09 19:29:03 +0400 |
commit | 71fc2a42aeb7ba09af6e1bffa364e432d4f5171e (patch) | |
tree | afc30cf74b094408e950103ebea14d423a866524 | |
parent | 4a89d2b07251378ee946a05846e0c7ccf641e62a (diff) | |
download | swap-modules-71fc2a42aeb7ba09af6e1bffa364e432d4f5171e.tar.gz swap-modules-71fc2a42aeb7ba09af6e1bffa364e432d4f5171e.tar.bz2 swap-modules-71fc2a42aeb7ba09af6e1bffa364e432d4f5171e.zip |
Fix getting char from va_args
-rw-r--r-- | driver/events.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/driver/events.h b/driver/events.h index 0f34ec59..8be66b5d 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 |