ansilove

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

commit b6f16b4ca05f8afac020847ec58a36ef61fc4c52
parent 1a2c9a281db1412a3c83ff8dbb85bdca2ac94497
Author: Frederic Cambus <fred@statdns.com>
Date:   Fri, 14 Feb 2020 18:15:39 +0100

Use strcmp() instead of strncmp() to match user specified type.

Diffstat:
Msrc/ansilove.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/ansilove.c b/src/ansilove.c @@ -241,7 +241,7 @@ main(int argc, char *argv[]) /* if type was specified, attempt to find a loader */ if (type) { for (size_t loop = 0; loop < 7; loop++) { - if (!strncmp(types[loop], type, strlen(type))) { + if (!strcmp(types[loop], type)) { loader = loaders[loop]; break; }