Преглед изворни кода

* Ignore negative indices in font data.

pull/1/head
Sam Hocevar sam пре 19 година
родитељ
комит
4af6e12627
1 измењених фајлова са 8 додато и 0 уклоњено
  1. +8
    -0
      src/figlet.c

+ 8
- 0
src/figlet.c Прегледај датотеку

@@ -202,6 +202,14 @@ static int open_font(context_t *cx)
if(buf[0] == '\n' || buf[0] == '\r') if(buf[0] == '\n' || buf[0] == '\r')
continue; continue;


/* Ignore negative indices for now, as in ivrit.flf */
if(buf[0] == '-')
{
for(j = 0; j < cx->height; j++)
toigets(buf, 2048, f);
continue;
}

if(!buf[0] || buf[0] < '0' || buf[0] > '9') if(!buf[0] || buf[0] < '0' || buf[0] > '9')
{ {
free(data); free(data);


Loading…
Откажи
Сачувај