ipodpatcher: fix warning for apple stop sign constant

Convert both instances of the apple stop sign constant
to char array instances. This ensures sizeof will work
as expected when applied to the constant.

Change-Id: I8599f7b0a00031e944e654b12a0bc59309926807
This commit is contained in:
James Buren 2021-04-06 21:56:55 -05:00 committed by Solomon Peachy
parent 79d1b68fe2
commit f968d6032a
2 changed files with 32 additions and 32 deletions

View file

@ -53,22 +53,22 @@ int ipod_verbose = 0;
/* The following string appears at the start of the firmware partition */ /* The following string appears at the start of the firmware partition */
static const char *apple_stop_sign = "{{~~ /-----\\ "\ static const char apple_stop_sign[] = "{{~~ /-----\\ "\
"{{~~ / \\ "\ "{{~~ / \\ "\
"{{~~| | "\ "{{~~| | "\
"{{~~| S T O P | "\ "{{~~| S T O P | "\
"{{~~| | "\ "{{~~| | "\
"{{~~ \\ / "\ "{{~~ \\ / "\
"{{~~ \\-----/ "\ "{{~~ \\-----/ "\
"Copyright(C) 200"\ "Copyright(C) 200"\
"1 Apple Computer"\ "1 Apple Computer"\
", Inc.----------"\ ", Inc.----------"\
"----------------"\ "----------------"\
"----------------"\ "----------------"\
"----------------"\ "----------------"\
"----------------"\ "----------------"\
"----------------"\ "----------------"\
"---------------"; "---------------";
/* Windows requires the buffer for disk I/O to be aligned in memory on a /* Windows requires the buffer for disk I/O to be aligned in memory on a
multiple of the disk volume size - so we use a single global variable multiple of the disk volume size - so we use a single global variable

View file

@ -663,22 +663,22 @@ static int iaudio_encode(char *iname, char *oname, char *idstring)
static int ipod_encode(char *iname, char *oname, int fw_ver, bool fake_rsrc) static int ipod_encode(char *iname, char *oname, int fw_ver, bool fake_rsrc)
{ {
static const char *apple_stop_sign = "{{~~ /-----\\ "\ static const char apple_stop_sign[] = "{{~~ /-----\\ "\
"{{~~ / \\ "\ "{{~~ / \\ "\
"{{~~| | "\ "{{~~| | "\
"{{~~| S T O P | "\ "{{~~| S T O P | "\
"{{~~| | "\ "{{~~| | "\
"{{~~ \\ / "\ "{{~~ \\ / "\
"{{~~ \\-----/ "\ "{{~~ \\-----/ "\
"Copyright(C) 200"\ "Copyright(C) 200"\
"1 Apple Computer"\ "1 Apple Computer"\
", Inc.----------"\ ", Inc.----------"\
"----------------"\ "----------------"\
"----------------"\ "----------------"\
"----------------"\ "----------------"\
"----------------"\ "----------------"\
"----------------"\ "----------------"\
"---------------"; "---------------";
size_t len; size_t len;
int length; int length;
int rsrclength; int rsrclength;