BUG#24896 magnus' suggestion

This commit is contained in:
df@kahlann.erinye.com 2006-12-12 15:47:02 +01:00
parent 8375e6684d
commit b9cce096a2

View file

@ -322,8 +322,8 @@ static int create_defaults_file(const char *path, const char *forced_path)
dynstr_set(&buf, "\n[client]"); dynstr_set(&buf, "\n[client]");
if (opt_password) if (opt_password)
{ {
if (dynstr_append_mem(&buf, "\npassword=", 10) if (dynstr_append(&buf, "\npassword=")
|| dynstr_append_mem(&buf, opt_password, strlen(opt_password))) || dynstr_append(&buf, opt_password))
{ {
ret = 1; ret = 1;
goto error; goto error;