diff options
author | Sujatha <sujatha.sivakumar@mariadb.com> | 2020-09-28 17:55:39 +0530 |
---|---|---|
committer | Sujatha <sujatha.sivakumar@mariadb.com> | 2020-09-28 17:55:39 +0530 |
commit | ce845b7a2fb3b86a1cc1a54a488ab7f16448d7c1 (patch) | |
tree | 767a910bb2d89a42a7ba3b05958340ec16d20b94 /tests/mysql_client_test.c | |
parent | 7edfb72efff18b7de7f22cd6dfd90b553e27c286 (diff) | |
parent | 6cbbd6bd96a8b5c97ec4d0b687aac29fb0f63a6a (diff) | |
download | mariadb-git-ce845b7a2fb3b86a1cc1a54a488ab7f16448d7c1.tar.gz |
Merge branch '10.3' into 10.4
Diffstat (limited to 'tests/mysql_client_test.c')
-rw-r--r-- | tests/mysql_client_test.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/mysql_client_test.c b/tests/mysql_client_test.c index 9435e434ff8..1f0ad42f6ea 100644 --- a/tests/mysql_client_test.c +++ b/tests/mysql_client_test.c @@ -8615,7 +8615,8 @@ static void test_mem_overun() char buffer[10000], field[10]; MYSQL_STMT *stmt; MYSQL_RES *field_res; - int rc, i, length; + int rc, length; + unsigned i; myheader("test_mem_overun"); @@ -8629,7 +8630,7 @@ static void test_mem_overun() strxmov(buffer, "create table t_mem_overun(", NullS); for (i= 0; i < 1000; i++) { - sprintf(field, "c%d int", i); + sprintf(field, "c%u int", i); strxmov(buffer, buffer, field, ", ", NullS); } length= strlen(buffer); |