From b254c4649e5d705df802e1f63ed8d5051b225a40 Mon Sep 17 00:00:00 2001 From: Magnus Olsen Date: Sun, 28 May 2006 01:32:32 +0000 Subject: [PATCH] making one more wine msvcrt printf test pass now it is 62 fails instead of 63 fails svn path=/trunk/; revision=22082 --- reactos/lib/rtl/sprintf.c | 2 +- reactos/lib/rtl/swprintf.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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'; }