Add missing linefeed in output strings

* src/ftp.c (getftp): Add linefeed to error message.
* src/res.c (res_parse_from_file): Likewise.
* src/utils.c (fopen_stat): Likewise.
  (open_stat): Likewise.
This commit is contained in:
Tim Rühsen 2020-04-18 18:39:50 +02:00
parent 6e5cf727c5
commit 9dacc2836a
3 changed files with 4 additions and 4 deletions

View File

@ -400,7 +400,7 @@ getftp (struct url *u, struct url *original_url,
if (!ssl_init ())
{
scheme_disable (SCHEME_FTPS);
logprintf (LOG_NOTQUIET, _("Could not initialize SSL. It will be disabled."));
logprintf (LOG_NOTQUIET, _("Could not initialize SSL. It will be disabled.\n"));
err = SSLINITFAILED;
return err;
}

View File

@ -391,7 +391,7 @@ res_parse_from_file (const char *filename)
struct file_memory *fm = wget_read_file (filename);
if (!fm)
{
logprintf (LOG_NOTQUIET, _("Cannot open %s: %s"),
logprintf (LOG_NOTQUIET, _("Cannot open %s: %s\n"),
filename, strerror (errno));
return NULL;
}

View File

@ -899,7 +899,7 @@ fopen_stat(const char *fname, const char *mode, file_stats_t *fstats)
fdstats.st_ino != fstats->st_ino))
{
/* File changed since file_exists_p() : NOT SAFE */
logprintf (LOG_NOTQUIET, _("File %s changed since the last check. Security check failed."), fname);
logprintf (LOG_NOTQUIET, _("File %s changed since the last check. Security check failed.\n"), fname);
fclose (fp);
return NULL;
}
@ -950,7 +950,7 @@ open_stat(const char *fname, int flags, mode_t mode, file_stats_t *fstats)
fdstats.st_ino != fstats->st_ino))
{
/* File changed since file_exists_p() : NOT SAFE */
logprintf (LOG_NOTQUIET, _("Trying to open file %s but it changed since last check. Security check failed."), fname);
logprintf (LOG_NOTQUIET, _("Trying to open file %s but it changed since last check. Security check failed.\n"), fname);
close (fd);
return -1;
}