1
0
mirror of https://github.com/mariadb-corporation/mariadb-connector-c.git synced 2025-08-07 02:42:49 +03:00

Merge branch '3.1' into 3.3

This commit is contained in:
Oleksandr Byelkin
2023-10-23 13:36:05 +02:00

View File

@@ -3272,7 +3272,7 @@ static int test_mem_overun(MYSQL *mysql)
strcpy(buffer, "create table t_mem_overun("); strcpy(buffer, "create table t_mem_overun(");
for (i= 0; i < 1000; i++) for (i= 0; i < 1000; i++)
{ {
sprintf(field, "c%d int, ", i); snprintf(field, sizeof(field), "c%d int, ", i);
strcat(buffer, field); strcat(buffer, field);
} }
length= (int)strlen(buffer); length= (int)strlen(buffer);