X-Git-Url: http://git.tdb.fi/?p=ttf2png.git;a=blobdiff_plain;f=ttf2png.c;h=770f0c633119efc6a3e6219a287bb85de48a193e;hp=27838112917fe5b3d854e7e03b6a80efccf40a3c;hb=HEAD;hpb=e80f88a25e4c1e3f91be435636be4267ba6ab9ec diff --git a/ttf2png.c b/ttf2png.c index 2783811..76c2e0d 100644 --- a/ttf2png.c +++ b/ttf2png.c @@ -1,6 +1,6 @@ /* ttf2png - True Type Font to PNG converter -Copyright (c) 2004-2018 Mikko Rasa, Mikkosoft Productions +Copyright (c) 2004-2021 Mikko Rasa, Mikkosoft Productions This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -289,8 +289,8 @@ int main(int argc, char **argv) void usage(void) { - printf("ttf2png 1.1 - True Type Font to PNG converter\n" - "Copyright (c) 2004-2018 Mikko Rasa, Mikkosoft Productions\n" + printf("ttf2png 2.0 - True Type Font to PNG converter\n" + "Copyright (c) 2004-2021 Mikko Rasa, Mikkosoft Productions\n" "Distributed under the GNU General Public License\n\n"); printf("Usage: ttf2png [options] \n\n"); @@ -348,7 +348,7 @@ void convert_code_point_range(char opt, Range *range) { range->first = value; value = str_to_code_point(ptr+1, &ptr); - if(value>=0 && !*ptr) + if(value>=(int)range->first && !*ptr) { range->last = value; return;