summaryrefslogtreecommitdiffstats
path: root/test/plist_test.c
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2014-02-13 12:14:31 +0100
committerGravatar Nikias Bassen2014-02-13 12:14:31 +0100
commit8867ee930606a2d9126b742b1c5ad7a8fa425190 (patch)
treecd68fba84007c810a184e48360ddb78a2f2ed389 /test/plist_test.c
parent497a5980d837e212f2444688dce72c6080762280 (diff)
downloadlibplist-8867ee930606a2d9126b742b1c5ad7a8fa425190.tar.gz
libplist-8867ee930606a2d9126b742b1c5ad7a8fa425190.tar.bz2
fix make distcheck
Diffstat (limited to 'test/plist_test.c')
-rw-r--r--test/plist_test.c6
1 files changed, 3 insertions, 3 deletions
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);