1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

compatibility issues

Fixed errors reported by valgrind (some errors in NDB remains)
This commit is contained in:
monty@mysql.com
2005-05-20 16:14:35 +03:00
parent ed674271d4
commit 0b75f6e37b
8 changed files with 33 additions and 23 deletions

View File

@ -135,6 +135,16 @@ int my_vsnprintf(char *to, size_t n, const char* fmt, va_list ap)
to+= res_length;
continue;
}
else if (*fmt == 'c') /* Character parameter */
{
register int larg;
if (to == end)
break;
larg = va_arg(ap, int);
*to++= (char) larg;
continue;
}
/* We come here on '%%', unknown code or too long parameter */
if (to == end)
break;