From 8867ee930606a2d9126b742b1c5ad7a8fa425190 Mon Sep 17 00:00:00 2001 From: Nikias Bassen Date: Thu, 13 Feb 2014 12:14:31 +0100 Subject: fix make distcheck --- test/plist_test.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'test/plist_test.c') diff --git a/test/plist_test.c b/test/plist_test.c index 17be11a..b498e1d 100644 --- a/test/plist_test.c +++ b/test/plist_test.c @@ -44,14 +44,16 @@ int main(int argc, char *argv[]) uint32_t size_out = 0; uint32_t size_out2 = 0; char *file_in = NULL; + char *file_out = NULL; struct stat *filestats = (struct stat *) malloc(sizeof(struct stat)); - if (argc!= 2) + if (argc != 3) { printf("Wrong input\n"); return 1; } file_in = argv[1]; + file_out = argv[2]; //read input file iplist = fopen(file_in, "rb"); @@ -108,8 +110,6 @@ int main(int argc, char *argv[]) if (plist_xml2) { FILE *oplist = NULL; - char file_out[512]; - sprintf(file_out, "%s.out", file_in); oplist = fopen(file_out, "wb"); fwrite(plist_xml2, size_out2, sizeof(char), oplist); fclose(oplist); -- cgit v1.1-32-gdbae