From 1973e22e6f90670b6b1031aea89695c6a615e607 Mon Sep 17 00:00:00 2001 From: Bill Kendrick Date: Sun, 12 Nov 2023 15:16:09 -0800 Subject: [PATCH] Some Magics: Add missing \n to stderr output flower & googlyeyes were missing them in some fprintf() calls. --- magic/src/flower.c | 14 +++++++------- magic/src/googlyeyes.c | 8 ++++---- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/magic/src/flower.c b/magic/src/flower.c index 488f0aa86..b0d90645e 100644 --- a/magic/src/flower.c +++ b/magic/src/flower.c @@ -23,7 +23,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA (See COPYING.txt) - Last updated: April 23, 2023 + Last updated: November 12, 2023 */ #include @@ -130,14 +130,14 @@ int flower_init(magic_api * api, Uint32 disabled_features ATTRIBUTE_UNUSED) tmp_surf = IMG_Load(fname); if (tmp_surf == NULL) { - fprintf(stderr, "Cannot load %s", fname); + fprintf(stderr, "Cannot load %s\n", fname); return (0); } h = tmp_surf->h * MAX_WIDTH / tmp_surf->w; flower_base_full = api->scale(tmp_surf, MAX_WIDTH, h, 1); if (flower_base_full == NULL) { - fprintf(stderr, "Cannot scale %s", fname); + fprintf(stderr, "Cannot scale %s\n", fname); return (0); } @@ -145,7 +145,7 @@ int flower_init(magic_api * api, Uint32 disabled_features ATTRIBUTE_UNUSED) tmp_surf = IMG_Load(fname); if (tmp_surf == NULL) { - fprintf(stderr, "Cannot load %s", fname); + fprintf(stderr, "Cannot load %s\n", fname); return (0); } /* N.B.: Leaf is 1/2 as wide as base & petals */ @@ -153,7 +153,7 @@ int flower_init(magic_api * api, Uint32 disabled_features ATTRIBUTE_UNUSED) flower_leaf_full = api->scale(tmp_surf, MAX_WIDTH / 2, h, 1); if (flower_leaf_full == NULL) { - fprintf(stderr, "Cannot scale %s", fname); + fprintf(stderr, "Cannot scale %s\n", fname); return (0); } @@ -161,14 +161,14 @@ int flower_init(magic_api * api, Uint32 disabled_features ATTRIBUTE_UNUSED) tmp_surf = IMG_Load(fname); if (tmp_surf == NULL) { - fprintf(stderr, "Cannot load %s", fname); + fprintf(stderr, "Cannot load %s\n", fname); return (0); } h = tmp_surf->h * MAX_WIDTH / tmp_surf->w; flower_petals_full = api->scale(tmp_surf, MAX_WIDTH, h, 1); if (flower_petals_full == NULL) { - fprintf(stderr, "Cannot scale %s", fname); + fprintf(stderr, "Cannot scale %s\n", fname); return (0); } diff --git a/magic/src/googlyeyes.c b/magic/src/googlyeyes.c index 757e6cec7..6508e755b 100644 --- a/magic/src/googlyeyes.c +++ b/magic/src/googlyeyes.c @@ -3,7 +3,7 @@ Draws a googly eye at the click position, and looks towards where you drag+release. - Last updated: April 18, 2023 + Last updated: November 12, 2023 */ #include @@ -150,7 +150,7 @@ int googlyeyes_init(magic_api * api, Uint32 disabled_features) if (googlyeyes_img_bkgd[i] == NULL) { - fprintf(stderr, "Cannot scale bkgd to %d%%", size); + fprintf(stderr, "Cannot scale bkgd to %d%%\n", size); return (1); } @@ -160,7 +160,7 @@ int googlyeyes_init(magic_api * api, Uint32 disabled_features) if (googlyeyes_img_pupil[i] == NULL) { - fprintf(stderr, "Cannot scale pupil to %d%%", size); + fprintf(stderr, "Cannot scale pupil to %d%%\n", size); return (1); } @@ -170,7 +170,7 @@ int googlyeyes_init(magic_api * api, Uint32 disabled_features) if (googlyeyes_img_reflection[i] == NULL) { - fprintf(stderr, "Cannot scale reflection to %d%%", size); + fprintf(stderr, "Cannot scale reflection to %d%%\n", size); return (1); } }