summaryrefslogtreecommitdiff
path: root/tests/mysql_client_test.c
diff options
context:
space:
mode:
authorSujatha <sujatha.sivakumar@mariadb.com>2020-09-28 17:55:39 +0530
committerSujatha <sujatha.sivakumar@mariadb.com>2020-09-28 17:55:39 +0530
commitce845b7a2fb3b86a1cc1a54a488ab7f16448d7c1 (patch)
tree767a910bb2d89a42a7ba3b05958340ec16d20b94 /tests/mysql_client_test.c
parent7edfb72efff18b7de7f22cd6dfd90b553e27c286 (diff)
parent6cbbd6bd96a8b5c97ec4d0b687aac29fb0f63a6a (diff)
downloadmariadb-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.c5
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);