]> git.tdb.fi Git - ttf2png.git/blobdiff - ttf2png.c
Correctly interpret a single number given to -c
[ttf2png.git] / ttf2png.c
index ebc0ccce76f43fee0e93b3c43d756bc129a900bc..1b1106a9f03bff035d4b9e2dc53e260840ce668f 100644 (file)
--- a/ttf2png.c
+++ b/ttf2png.c
@@ -159,6 +159,8 @@ int main(int argc, char **argv)
                                cellw = strtol(optarg, &ptr, 0);
                                if(ptr[0]=='x' && isdigit(ptr[1]))
                                        cellh = strtol(ptr+1, NULL, 0);
+                               else
+                                       cellh = cellw;
                        }
                        break;
                case 'o':