diff options
author | unknown <reggie@mdk10.(none)> | 2005-05-19 16:02:14 -0500 |
---|---|---|
committer | unknown <reggie@mdk10.(none)> | 2005-05-19 16:02:14 -0500 |
commit | 1da5382a9fa37ffd9ebdf30b74b0a515af879a64 (patch) | |
tree | f73ffd83cb856936fa46f2db58d48470f0ee1cf2 /strings/my_vsnprintf.c | |
parent | f4a584f5013373f3c939df7cd7ef7ab444b18168 (diff) | |
download | mariadb-git-1da5382a9fa37ffd9ebdf30b74b0a515af879a64.tar.gz |
BUG# 10687 - MERGE engine fails under Windows
This patch was submitted by Ingo and it appears to work correctly.
sql/ha_myisammrg.cc:
use FN_LIBCHAR instead of / so buff works correctly on Windows
strings/my_vsnprintf.c:
add support for %c to my_vsnprintf
Diffstat (limited to 'strings/my_vsnprintf.c')
-rw-r--r-- | strings/my_vsnprintf.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/strings/my_vsnprintf.c b/strings/my_vsnprintf.c index 268f7d18f2a..d92b291321b 100644 --- a/strings/my_vsnprintf.c +++ b/strings/my_vsnprintf.c @@ -28,7 +28,8 @@ %#[l]u %#[l]x %#.#s Note first # is ignored - + %c + RETURN length of result string */ @@ -120,6 +121,11 @@ int my_vsnprintf(char *to, size_t n, const char* fmt, va_list ap) to+= res_length; continue; } + else if (*fmt == 'c') + { + *(to++)= (char) va_arg(ap, int); + continue; + } /* We come here on '%%', unknown code or too long parameter */ if (to == end) break; |