Commit cabca09f authored by unknown's avatar unknown

My previous change of replacing the call to sprintf with some memcpy type...

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


tests/mysql_client_test.c:
  reverting my previous change
parent c8a773e9
...@@ -12907,9 +12907,8 @@ static void test_bug8378() ...@@ -12907,9 +12907,8 @@ static void test_bug8378()
/* No escaping should have actually happened. */ /* No escaping should have actually happened. */
DIE_UNLESS(memcmp(out, TEST_BUG8378_OUT, len) == 0); DIE_UNLESS(memcmp(out, TEST_BUG8378_OUT, len) == 0);
strcpy(buf, "SELECT '"); sprintf(buf, "SELECT '%s'", out);
memcpy(buf+8, out, len);
buf[8+len] = '\'';
rc=mysql_real_query(mysql, buf, strlen(buf)); rc=mysql_real_query(mysql, buf, strlen(buf));
myquery(rc); myquery(rc);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment