From ea49700ec1973aaff81e99f55eb701fd52978dfd Mon Sep 17 00:00:00 2001 From: Jim Mankovich Date: Mon, 11 Aug 2014 10:36:10 -0600 Subject: [PATCH] ID: 331 Passwords provided in file (-f option) truncated on space Code changed to remove truncation on space since space is valid in a password --- lib/ipmi_main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ipmi_main.c b/lib/ipmi_main.c index 14ca183..2bbbe4b 100644 --- a/lib/ipmi_main.c +++ b/lib/ipmi_main.c @@ -125,8 +125,8 @@ ipmi_password_file_read(char * filename) return NULL; } - /* remove trailing whitespace */ - l = strcspn(pass, " \r\n\t"); + /* remove traling */ + l = strcspn(pass, "\r\n\t"); if (l > 0) { pass[l] = '\0'; }