diff options
author | Michael Widenius <monty@askmonty.org> | 2012-08-17 16:46:34 +0300 |
---|---|---|
committer | Michael Widenius <monty@askmonty.org> | 2012-08-17 16:46:34 +0300 |
commit | f1159b18d930910d5b5b9c454a17b0ee66f853c3 (patch) | |
tree | 67d9ac4fb191347f0fff24a4b2b1f0e9fceda319 /extra/comp_err.c | |
parent | 60589aeee03949033c66da5c1eae70d4342179fc (diff) | |
download | mariadb-git-f1159b18d930910d5b5b9c454a17b0ee66f853c3.tar.gz |
More fixes
Diffstat (limited to 'extra/comp_err.c')
-rw-r--r-- | extra/comp_err.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/extra/comp_err.c b/extra/comp_err.c index bde7d705c75..b4f4b2ea337 100644 --- a/extra/comp_err.c +++ b/extra/comp_err.c @@ -50,7 +50,7 @@ static char *default_dbug_option= (char*) "d:t:O,/tmp/comp_err.trace"; #endif /* Header for errmsg.sys files */ -uchar file_head[]= { 254, 254, 2, 1 }; +uchar file_head[]= { 254, 254, 2, 2 }; /* Store positions to each error message row to store in errmsg.sys header */ uint file_pos[MAX_ROWS]; @@ -371,8 +371,8 @@ static int create_sys_files(struct languages *lang_head, bzero((uchar*) head, HEADER_LENGTH); bmove((uchar *) head, (uchar *) file_head, 4); head[4]= 1; - int2store(head + 6, length); - int2store(head + 8, row_count); + int4store(head + 6, length); + int2store(head + 10, row_count); head[30]= csnum; my_fseek(to, 0l, MY_SEEK_SET, MYF(0)); |