Some Magics: Add missing \n to stderr output

flower & googlyeyes were missing them in some fprintf() calls.
This commit is contained in:
Bill Kendrick 2023-11-12 15:16:09 -08:00
parent 3cf0223947
commit 1973e22e6f
2 changed files with 11 additions and 11 deletions

View file

@ -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 <stdio.h>
@ -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);
}

View file

@ -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 <stdio.h>
@ -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);
}
}