This website works better with JavaScript.
Home
Help
Sign In
cacalabs
/
libcaca
mirror of
https://github.com/cacalabs/libcaca.git
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
7
Wiki
Activity
Browse Source
Fix a crash on 0 sized font in img2txt
main
Pascal Terjan
5 months ago
parent
bd55d3b440
commit
69a4213235
1 changed files
with
5 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+5
-0
src/img2txt.c
+ 5
- 0
src/img2txt.c
View File
@@ -160,6 +160,11 @@ int main(int argc, char **argv)
}
}
if(!font_height || !font_width)
{
fprintf(stderr, "%s: invalid font size %dx%d\n", argv[0], font_width, font_height);
return 1;
}
cv = caca_create_canvas(0, 0);
if(!cv)
Write
Preview
Loading…
Cancel
Save