diff options
author | monty@mashka.mysql.fi <> | 2003-01-24 14:59:36 +0200 |
---|---|---|
committer | monty@mashka.mysql.fi <> | 2003-01-24 14:59:36 +0200 |
commit | cd02b19f12b0d816a957c917ffc08a927ae236e9 (patch) | |
tree | 3ce584a86c6220f552ee248fe7a48eb1a0260e3c /client | |
parent | 500b90f4dfef1b943a7944322f9c9ad4ac79b078 (diff) | |
download | mariadb-git-cd02b19f12b0d816a957c917ffc08a927ae236e9.tar.gz |
Fix bug in --relative (-r)
Diffstat (limited to 'client')
-rw-r--r-- | client/mysqladmin.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/client/mysqladmin.c b/client/mysqladmin.c index 0dd8cfb1bd0..b62be3e45d3 100644 --- a/client/mysqladmin.c +++ b/client/mysqladmin.c @@ -24,7 +24,7 @@ #endif #define ADMIN_VERSION "8.23" -#define MAX_MYSQL_VAR 64 +#define MAX_MYSQL_VAR 256 #define SHUTDOWN_DEF_TIMEOUT 3600 /* Wait for shutdown */ #define MAX_TRUNC_LENGTH 3 @@ -986,7 +986,7 @@ static void print_relative_row(MYSQL_RES *result, MYSQL_ROW cur, uint row) printf("| %-*s|", field->max_length + 1, cur[0]); field = mysql_fetch_field(result); - tmp = cur[1] ? strtoull(cur[1], NULL, 0) : (ulonglong) 0; + tmp = cur[1] ? strtoull(cur[1], NULL, 10) : (ulonglong) 0; printf(" %-*s|\n", field->max_length + 1, llstr((tmp - last_values[row]), buff)); last_values[row] = tmp; |