diff --git a/mount.cifs.c b/mount.cifs.c index 9f2aa89e7f6d491298cabe0af466d117a9693fce..e0ce8cfd597308d5f93c7553a8774dd64e205593 100644 --- a/mount.cifs.c +++ b/mount.cifs.c @@ -609,17 +609,14 @@ static int open_cred_file(char *file_name, goto return_i; break; case CRED_DOM: - if (parsed_info->verboseflag) - fprintf(stderr, "domain=%s\n", - temp_val); + strlcpy(parsed_info->domain, temp_val, sizeof(parsed_info->domain)); break; case CRED_UNPARSEABLE: if (parsed_info->verboseflag) fprintf(stderr, "Credential formatted " - "incorrectly: %s\n", - temp_val ? temp_val : "(null)"); + "incorrectly\n"); break; } }