commit 2965e38ef6be8f6177fc7f506be7a32d55b24fe5
parent f21fec9355ca160ca4f0e8d635e0986bbe3365ed
Author: Claudio Alessi <smoppy@gmail.com>
Date: Thu, 14 Apr 2016 22:46:47 +0200
Fix previous commit.
MySQL table max length is 64 bytes.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/myadm.c b/myadm.c
@@ -718,7 +718,7 @@ viewtable(const Arg *arg) {
void
viewtable_show(void) {
MYSQL_RES *res;
- char tbl[MAXCOLSZ+1];
+ char tbl[64+1];
snprintf(tbl, sizeof tbl, "%s", selview->choice->cols[0]);
if(!(res = mysql_exec("select * from `%s`", tbl)))