This website works better with JavaScript.
Home
Help
Sign In
cacalabs
/
toilet
mirror of
https://github.com/cacalabs/toilet.git
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
0
Wiki
Activity
Browse Source
* Make figlet font importer more tolerant with empty lines.
pull/1/head
Sam Hocevar
sam
18 years ago
parent
cbc2d320e1
commit
374627e287
1 changed files
with
4 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+4
-0
src/figlet.c
+ 4
- 0
src/figlet.c
View File
@@ -198,6 +198,10 @@ static int open_font(context_t *cx)
if(toigets(buf, 2048, f) == NULL)
break;
/* Ignore blank lines, as in jacky.flf */
if(buf[0] == '\n' || buf[0] == '\r')
continue;
if(!buf[0] || buf[0] < '0' || buf[0] > '9')
{
free(data);
Write
Preview
Loading…
Cancel
Save