summaryrefslogtreecommitdiff
path: root/extra/perror.c
diff options
context:
space:
mode:
authorunknown <tomas@poseidon.(none)>2004-08-18 10:10:50 +0000
committerunknown <tomas@poseidon.(none)>2004-08-18 10:10:50 +0000
commit504c2f457963c8dcca2f71479d98c7bbb258f31b (patch)
tree1b1ff9272280f506e497d10e305fa860c0913cdc /extra/perror.c
parent559030562775f0d8b3ea83a9e58dd2572a293681 (diff)
downloadmariadb-git-504c2f457963c8dcca2f71479d98c7bbb258f31b.tar.gz
bug#5076 bug#5077
Diffstat (limited to 'extra/perror.c')
-rw-r--r--extra/perror.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/extra/perror.c b/extra/perror.c
index f1b1a4c2005..a28626fd873 100644
--- a/extra/perror.c
+++ b/extra/perror.c
@@ -42,7 +42,7 @@ static struct my_option my_long_options[] =
NO_ARG, 0, 0, 0, 0, 0, 0},
#ifdef HAVE_NDBCLUSTER_DB
{"ndb", 0, "Ndbcluster storage engine specific error codes.", (gptr*) &ndb_code,
- (gptr*) &ndb_code, 0, GET_BOOL, NO_ARG, 1, 0, 0, 0, 0, 0},
+ (gptr*) &ndb_code, 0, GET_BOOL, NO_ARG, 0, 0, 0, 0, 0, 0},
#endif
#ifdef HAVE_SYS_ERRLIST
{"all", 'a', "Print all the error messages and the number.",
@@ -222,7 +222,7 @@ int main(int argc,char *argv[])
#ifdef HAVE_NDBCLUSTER_DB
if (ndb_code)
{
- if (ndb_error_string(code, ndb_string, 1024) < 0)
+ if (ndb_error_string(code, ndb_string, sizeof(ndb_string)) < 0)
msg= 0;
else
msg= ndb_string;