diff options
Diffstat (limited to 'lib/ipmi_main.c')
-rw-r--r-- | lib/ipmi_main.c | 4 |
1 files 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 <cr><nl><tab> */ + l = strcspn(pass, "\r\n\t"); if (l > 0) { pass[l] = '\0'; } |