diff options
Diffstat (limited to 'protocols/WhatsApp/src/WhatsAPI++/utilities.cpp')
-rw-r--r-- | protocols/WhatsApp/src/WhatsAPI++/utilities.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/protocols/WhatsApp/src/WhatsAPI++/utilities.cpp b/protocols/WhatsApp/src/WhatsAPI++/utilities.cpp index 1c6f28e009..bbffd4712a 100644 --- a/protocols/WhatsApp/src/WhatsAPI++/utilities.cpp +++ b/protocols/WhatsApp/src/WhatsAPI++/utilities.cpp @@ -355,7 +355,7 @@ std::string string_format(const char* fmt, va_list ap) {
int size = 100;
std::string str;
- while (1) {
+ while (true) {
str.resize(size);
//va_start(ap, fmt);
int n = vsnprintf((char *)str.c_str(), size, fmt, ap);
|