From: Jorge Pereira Date: Thu, 12 Mar 2020 19:47:24 +0000 (-0300) Subject: make sure there are trailing CRs (#3320) X-Git-Tag: release_3_0_21~18 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=892ea737340d9ee99e7e463345d3d67cf8ca9bc0;p=thirdparty%2Ffreeradius-server.git make sure there are trailing CRs (#3320) --- diff --git a/scripts/jlibtool.c b/scripts/jlibtool.c index 1e51b369c77..4192ac389e0 100644 --- a/scripts/jlibtool.c +++ b/scripts/jlibtool.c @@ -413,7 +413,7 @@ static void *lt_malloc(size_t size) out = malloc(size); if (!out) { - ERROR("Failed allocating %zu bytes, OOM", size); + ERROR("Failed allocating %zu bytes, OOM\n", size); exit(1); } @@ -1053,7 +1053,7 @@ static char *gen_library_name(char const *name, enum lib_type genlib) newext = strrchr(newarg, '.'); if (!newext) { - ERROR("Library path does not have an extension"); + ERROR("Library path does not have an extension\n"); free(newarg); return NULL; @@ -1145,7 +1145,7 @@ static char *check_library_exists(command_t *cmd, char const *arg, int pathlen, strcpy(newarg + newpathlen, arg + pathlen); ext = strrchr(newarg, '.'); if (!ext) { - ERROR("Error: Library path does not have an extension"); + ERROR("Error: Library path does not have an extension\n"); free(newarg); return NULL; @@ -2224,14 +2224,14 @@ static int run_mode(command_t *cmd) char *l, libpath[PATH_MAX]; if (!cmd->arglist->num) { - ERROR("No command to execute."); + ERROR("No command to execute.\n"); rv = 1; goto finish; } if (strlen(cmd->arglist->vals[0]) >= PATH_MAX) { - ERROR("Libpath too long no buffer space"); + ERROR("Libpath too long no buffer space\n"); rv = 1; goto finish; @@ -2281,7 +2281,7 @@ static void cleanup_tmp_dir(char const *dirname) } if ((strlen(dirname) + 1 + sizeof(entry->d_name)) >= sizeof(fullname)) { - ERROR("Dirname too long, out of buffer space"); + ERROR("Dirname too long, out of buffer space\n"); (void) closedir(dir); return;