diff options
author | unknown <df@kahlann.erinye.com> | 2006-12-12 15:47:02 +0100 |
---|---|---|
committer | unknown <df@kahlann.erinye.com> | 2006-12-12 15:47:02 +0100 |
commit | c6e421bc451e92db86980acc495bfdddd3058d0f (patch) | |
tree | 086d4d72122be44b50dc085fcdcd5dfbea6e2729 | |
parent | 12ac165c2f856ca8e8bf10a85b60722c9cbade64 (diff) | |
download | mariadb-git-c6e421bc451e92db86980acc495bfdddd3058d0f.tar.gz |
BUG#24896 magnus' suggestion
-rw-r--r-- | client/mysql_upgrade.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/client/mysql_upgrade.c b/client/mysql_upgrade.c index 309b532051c..0f3f307a26d 100644 --- a/client/mysql_upgrade.c +++ b/client/mysql_upgrade.c @@ -322,8 +322,8 @@ static int create_defaults_file(const char *path, const char *forced_path) dynstr_set(&buf, "\n[client]"); if (opt_password) { - if (dynstr_append_mem(&buf, "\npassword=", 10) - || dynstr_append_mem(&buf, opt_password, strlen(opt_password))) + if (dynstr_append(&buf, "\npassword=") + || dynstr_append(&buf, opt_password)) { ret = 1; goto error; |