소스 검색

* 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')
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')
{
free(data);


불러오는 중...
취소
저장