summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorKostya Serebryany <kcc@google.com>2012-09-14 06:52:46 +0000
committerKostya Serebryany <kcc@google.com>2012-09-14 06:52:46 +0000
commit01167e89d77530d5d8507e1f0f1f2979a1497573 (patch)
tree5f4eefe79adb78dd5532732468e1dd7bd78db7db /lib
parent81dfbb76f858fbc4084771fce4967ede04ed5f44 (diff)
[asan] fix the va_arg usage
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@163879 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/sanitizer_common/sanitizer_printf.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sanitizer_common/sanitizer_printf.cc b/lib/sanitizer_common/sanitizer_printf.cc
index 6aeedabdf..93d4fa978 100644
--- a/lib/sanitizer_common/sanitizer_printf.cc
+++ b/lib/sanitizer_common/sanitizer_printf.cc
@@ -129,7 +129,7 @@ int VSNPrintf(char *buff, int buff_length,
}
case 'c': {
RAW_CHECK_MSG(!have_z, kPrintfFormatsHelp);
- result += AppendChar(&buff, buff_end, va_arg(args, uptr));
+ result += AppendChar(&buff, buff_end, va_arg(args, int));
break;
}
case '%' : {