From b71f0ecc99dae21443b76f6008c7520fdbb9f1ea Mon Sep 17 00:00:00 2001
From: BogDan Vatra <bogdan@kde.org>
Date: Sun, 28 Dec 2014 22:03:51 +0200
Subject: [PATCH 07/11] On Android use vswprintf_s, because we need to tweak
the format.
---
source/lib/sysdep/os/unix/printf.cpp | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/source/lib/sysdep/os/unix/printf.cpp b/source/lib/sysdep/os/unix/printf.cpp
index 6c5a8be..917de50 100644
a
|
b
|
|
29 | 29 | |
30 | 30 | int sys_vswprintf(wchar_t* buffer, size_t count, const wchar_t* format, va_list argptr) |
31 | 31 | { |
| 32 | #if OS_ANDROID |
| 33 | int ret = vswprintf_s(buffer, count, format, argptr); |
| 34 | #else |
32 | 35 | int ret = vswprintf(buffer, count, format, argptr); |
| 36 | #endif |
33 | 37 | |
34 | 38 | // Guarantee the buffer is null terminated on error |
35 | 39 | if (ret < 0 && count > 0) |