ansilove

ANSI and ASCII art to PNG converter in C
Log | Files | Refs | README | LICENSE

commit 0dfed5c601f37846a60ea970b4f6e219b6605f55
parent a62e2cbacf3b107dcd0e4d85a894d34cbef873ea
Author: ByteProject <stefan.vogt@byteproject.net>
Date:   Sat, 31 Dec 2011 10:49:40 +0100

no need to make file names lowercase

we create a file extension string we make lowercase that's fairly
enough for the comparison methods

Diffstat:
Mansilove/main.c | 9++++-----
1 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/ansilove/main.c b/ansilove/main.c @@ -108,7 +108,7 @@ int main(int argc, char *argv[]) return EXIT_SUCCESS; } - // let's check the file for a SAUCE record + // let's check the file for a valid SAUCE record sauce *record = sauceReadFileName(argv[1]); // record == NULL means there is no file, we can stop here @@ -145,12 +145,12 @@ int main(int argc, char *argv[]) // in case we got arguments for input, output and the '-s' flag is set if (strcmp(argv[2], "-s") == 0) { - // make file name lowercase and append .png suffix - sprintf(output, "%s.png", strtolower(input)); + // append .png suffix to file name + sprintf(output, "%s.png", input); } else { // so the user provided an alternate path / file name - sprintf(output, "%s", strtolower(argv[2])); + sprintf(output, "%s", argv[2]); } // check flags and apply them based on the file extension @@ -245,7 +245,6 @@ int main(int argc, char *argv[]) else { loadAnsi(); } - if (strcmp( record->ID, SAUCE_ID ) != 0) { printf("\nFile does not have a SAUCE record.\n");