diff --git a/reactos/lib/rtl/sprintf.c b/reactos/lib/rtl/sprintf.c index 37fb4c20c70..6f1e4411fcb 100644 --- a/reactos/lib/rtl/sprintf.c +++ b/reactos/lib/rtl/sprintf.c @@ -506,7 +506,7 @@ int _vsnprintf(char *buf, size_t cnt, const char *fmt, va_list args) { /* don't write out a null byte if the buf size is zero */ //*end = '\0'; - if (str-buf >=cnt ) + if (str-buf >cnt ) { *end = '\0'; } diff --git a/reactos/lib/rtl/swprintf.c b/reactos/lib/rtl/swprintf.c index f14d6590d89..8134d920d48 100644 --- a/reactos/lib/rtl/swprintf.c +++ b/reactos/lib/rtl/swprintf.c @@ -504,7 +504,7 @@ int _vsnwprintf(wchar_t *buf, size_t cnt, const wchar_t *fmt, va_list args) { /* don't write out a null byte if the buf size is zero */ //*end = '\0'; - if (str-buf >=cnt ) + if (str-buf >cnt ) { *end = L'\0'; }