From 1d348de71f4b180d23473480e1fdcc9c99982ce1 Mon Sep 17 00:00:00 2001 From: Peter Lieven Date: Tue, 30 Oct 2012 21:00:46 +0100 Subject: [PATCH] INIT fix typo in iscsi_parse_url() --- lib/init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/init.c b/lib/init.c index b01cba1..533b654 100644 --- a/lib/init.c +++ b/lib/init.c @@ -402,7 +402,7 @@ iscsi_parse_url(struct iscsi_context *iscsi, const char *url, int full) if (user != NULL && passwd != NULL) { strncpy(iscsi_url->user,user,MAX_STRING_SIZE); - strncpy(iscsi_url->user,passwd,MAX_STRING_SIZE); + strncpy(iscsi_url->passwd,passwd,MAX_STRING_SIZE); } if (full) {