aboutsummaryrefslogtreecommitdiffstats
path: root/libc/bionic/__vsprintf_chk.cpp
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2013-10-15 17:17:05 -0700
committerElliott Hughes <enh@google.com>2013-10-15 17:17:05 -0700
commit68b67113a44311b3568027af5893e316f63ec556 (patch)
tree14e02214b958c50a6b2d4d6af86301de2c328a10 /libc/bionic/__vsprintf_chk.cpp
parentd9913b0b0dfad473bd1cb81463ac0d6b68a0deb6 (diff)
downloadandroid_bionic-68b67113a44311b3568027af5893e316f63ec556.tar.gz
android_bionic-68b67113a44311b3568027af5893e316f63ec556.tar.bz2
android_bionic-68b67113a44311b3568027af5893e316f63ec556.zip
'Avoid confusing "read prevented write" log messages' 2.
This time it's assembler. Change-Id: Iae6369833b8046b8eda70238bb4ed0cae64269ea
Diffstat (limited to 'libc/bionic/__vsprintf_chk.cpp')
-rw-r--r--libc/bionic/__vsprintf_chk.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libc/bionic/__vsprintf_chk.cpp b/libc/bionic/__vsprintf_chk.cpp
index feb6e6831..bd2aeaba5 100644
--- a/libc/bionic/__vsprintf_chk.cpp
+++ b/libc/bionic/__vsprintf_chk.cpp
@@ -43,7 +43,7 @@
* greater than 0.
*/
extern "C" int __vsprintf_chk(char* dest, int /*flags*/,
- size_t dest_len_from_compiler, const char* format, va_list va) {
+ size_t dest_len_from_compiler, const char* format, va_list va) {
int result = vsnprintf(dest, dest_len_from_compiler, format, va);
if ((size_t) result >= dest_len_from_compiler) {
__fortify_chk_fail("vsprintf: prevented write past end of buffer", 0);