Skip to content
This repository has been archived by the owner on Jan 4, 2025. It is now read-only.

Commit

Permalink
fix: remove warnings dealing with accesses to dynamically allocated a…
Browse files Browse the repository at this point in the history
…rrays

Issue #110.
  • Loading branch information
moinejf committed Oct 10, 2022
1 parent 63cc234 commit 92163a7
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion subs.c
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,14 @@ static short cw_tb[] = {
500,500,444,480,200,480,541,500,
};

// PS/SVG user definitions
// This structure is dynamically created by malloc
// so that the field 'text' has the exact size of the user string.
// The size of this field in the structure is big enough
// to avoid most warnings of the C compiler.
static struct u_ps {
struct u_ps *next;
char text[2];
char text[100000];
} *user_ps;

/* -- print message for internal error and maybe stop -- */
Expand Down

0 comments on commit 92163a7

Please sign in to comment.