diff options
Diffstat (limited to 'test/cscodec-utf8.c')
-rw-r--r-- | test/cscodec-utf8.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/cscodec-utf8.c b/test/cscodec-utf8.c index b0dcb89..c36961e 100644 --- a/test/cscodec-utf8.c +++ b/test/cscodec-utf8.c @@ -40,8 +40,8 @@ int main(int argc, char **argv) parserutils_charset_codec *codec; line_ctx ctx; - if (argc != 3) { - printf("Usage: %s <aliases_file> <filename>\n", argv[0]); + if (argc != 2) { + printf("Usage: %s <filename>\n", argv[0]); return 1; } @@ -51,7 +51,7 @@ int main(int argc, char **argv) assert(parserutils_charset_codec_create("UTF-8", myrealloc, NULL, &ctx.codec) == PARSERUTILS_OK); - ctx.buflen = parse_filesize(argv[2]); + ctx.buflen = parse_filesize(argv[1]); if (ctx.buflen == 0) return 1; @@ -73,7 +73,7 @@ int main(int argc, char **argv) ctx.inexp = false; ctx.exp_ret = PARSERUTILS_OK; - assert(parse_testfile(argv[2], handle_line, &ctx) == true); + assert(parse_testfile(argv[1], handle_line, &ctx) == true); /* and run final test */ if (ctx.bufused > 0 && ctx.buf[ctx.bufused - 1] == '\n') |