diff options
author | Davi Arnaut <Davi.Arnaut@Sun.COM> | 2009-05-23 10:19:58 -0300 |
---|---|---|
committer | Davi Arnaut <Davi.Arnaut@Sun.COM> | 2009-05-23 10:19:58 -0300 |
commit | bd1c124681b824051674bb3f7302f2fd132f19ac (patch) | |
tree | 18e787409b0269cad75b7b03cc7ef2ebb06f8ad5 /tests | |
parent | c8c688daa83f1d01e1e1e0352c0014bd668400b8 (diff) | |
download | mariadb-git-bd1c124681b824051674bb3f7302f2fd132f19ac.tar.gz |
Workaround a compiler that does not support certain C99 features for C code.
tests/mysql_client_test.c:
Use a suitable constant for specifying the size of the array.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/mysql_client_test.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/mysql_client_test.c b/tests/mysql_client_test.c index e56d1e9f506..b836293442a 100644 --- a/tests/mysql_client_test.c +++ b/tests/mysql_client_test.c @@ -17744,8 +17744,8 @@ static void test_bug43560(void) MYSQL_STMT *stmt= 0; MYSQL_BIND bind; my_bool is_null= 0; - const uint BUFSIZE= 256; - char buffer[BUFSIZE]; + char buffer[256]; + const uint BUFSIZE= sizeof(buffer); const char* values[] = {"eins", "zwei", "drei", "viele", NULL}; const char insert_str[] = "INSERT INTO t1 (c2) VALUES (?)"; unsigned long length; |