diff options
Diffstat (limited to 'test/cscodec-utf16.c')
-rw-r--r-- | test/cscodec-utf16.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/cscodec-utf16.c b/test/cscodec-utf16.c index dd0ebb1..3eadaca 100644 --- a/test/cscodec-utf16.c +++ b/test/cscodec-utf16.c @@ -45,8 +45,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; } @@ -56,7 +56,7 @@ int main(int argc, char **argv) assert(parserutils_charset_codec_create("UTF-16", myrealloc, NULL, &ctx.codec) == PARSERUTILS_OK); - ctx.buflen = parse_filesize(argv[2]); + ctx.buflen = parse_filesize(argv[1]); if (ctx.buflen == 0) return 1; @@ -82,7 +82,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') |