Skip to content

Commit f636442

Browse files
Fix usage of symbols_get_description in symbols.c tests
dd27f99 added a desc_size parameter to symbols_get_description; this updates the (possibly unused?) symbols test main to supply it.
1 parent 486b3cf commit f636442

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/symbols.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1041,25 +1041,25 @@ int main (int argc, char *argv[])
10411041

10421042

10431043

1044-
symbols_get_description ('J', 's', description);
1044+
symbols_get_description ('J', 's', description, strlen(description));
10451045
if (strcmp(description, "Jet Ski") != 0) dw_printf ("ERROR 3-1\n");
10461046

1047-
symbols_get_description ('/', 'O', description);
1047+
symbols_get_description ('/', 'O', description, strlen(description));
10481048
if (strcmp(description, "BALLOON") != 0) dw_printf ("ERROR 3-2\n");
10491049

1050-
symbols_get_description ('\\', 'T', description);
1050+
symbols_get_description ('\\', 'T', description, strlen(description));
10511051
if (strcmp(description, "Thunderstorm") != 0) dw_printf ("ERROR 3-3\n");
10521052

1053-
symbols_get_description ('5', 'T', description);
1053+
symbols_get_description ('5', 'T', description, strlen(description));
10541054
if (strcmp(description, "Thunderstorm w/overlay 5") != 0) dw_printf ("ERROR 3-4\n");
10551055

10561056
// Expect to see this:
10571057
// Symbol table identifier is not '/' (primary), '\' (alternate), or valid overlay character.
10581058

1059-
symbols_get_description (' ', 'T', description);
1059+
symbols_get_description (' ', 'T', description, strlen(description));
10601060
if (strcmp(description, "--no-symbol--") != 0) dw_printf ("ERROR 3-5\n");
10611061

1062-
symbols_get_description ('/', ' ', description);
1062+
symbols_get_description ('/', ' ', description, strlen(description));
10631063
if (strcmp(description, "--no-symbol--") != 0) dw_printf ("ERROR 3-6\n");
10641064

10651065

0 commit comments

Comments
 (0)