mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
My previous change of replacing the call to sprintf with some memcpy type routines was not correct. This patch reverts that.
mysql_client_test.c: reverting my previous change
This commit is contained in:
@ -12907,9 +12907,8 @@ static void test_bug8378()
|
||||
/* No escaping should have actually happened. */
|
||||
DIE_UNLESS(memcmp(out, TEST_BUG8378_OUT, len) == 0);
|
||||
|
||||
strcpy(buf, "SELECT '");
|
||||
memcpy(buf+8, out, len);
|
||||
buf[8+len] = '\'';
|
||||
sprintf(buf, "SELECT '%s'", out);
|
||||
|
||||
rc=mysql_real_query(mysql, buf, strlen(buf));
|
||||
myquery(rc);
|
||||
|
||||
|
Reference in New Issue
Block a user