Initialize uninitialized string
Local string buffer was being operated without proper initialization, causing wcslen() to operate on invalid values. Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>
This commit is contained in:
parent
ab98e5ea0b
commit
89693cb2ab
2
figlet.c
2
figlet.c
@ -1141,6 +1141,8 @@ inchr theord;
|
||||
fcharlist->thechar = (outchr**)myalloc(sizeof(outchr*)*charheight);
|
||||
fcharlist->next = fclsave;
|
||||
|
||||
outline[0] = 0;
|
||||
|
||||
for (row=0;row<charheight;row++) {
|
||||
if (myfgets(templine,MAXLEN,file)==NULL) {
|
||||
templine[0] = '\0';
|
||||
|
Loading…
x
Reference in New Issue
Block a user