From 1bc333972bb5d5b45ba8908f1b12015300d88711 Mon Sep 17 00:00:00 2001
From: Jonathan Beck
Date: Wed, 28 Oct 2009 17:57:52 +0100
Subject: Fix build for MSVC9.

---
 test/plist_cmp.c  | 4 ++++
 test/plist_test.c | 6 +++++-
 2 files changed, 9 insertions(+), 1 deletion(-)

(limited to 'test')

diff --git a/test/plist_cmp.c b/test/plist_cmp.c
index 1a66119..386264a 100644
--- a/test/plist_cmp.c
+++ b/test/plist_cmp.c
@@ -27,6 +27,10 @@
 #include <string.h>
 #include <sys/stat.h>
 
+#ifdef _MSC_VER
+#pragma warning(disable:4996)
+#endif
+
 char compare_plist(plist_t node_l, plist_t node_r)
 {
 	plist_t cur_l = NULL;
diff --git a/test/plist_test.c b/test/plist_test.c
index a4dd714..069701e 100644
--- a/test/plist_test.c
+++ b/test/plist_test.c
@@ -27,6 +27,11 @@
 #include <string.h>
 #include <sys/stat.h>
 
+#ifdef _MSC_VER
+#pragma warning(disable:4996)
+#endif
+
+
 int main(int argc, char *argv[])
 {
 	FILE *iplist = NULL;
@@ -40,7 +45,6 @@ int main(int argc, char *argv[])
 	int size_out = 0;
 	int size_out2 = 0;
 	char *file_in = NULL;
-	char *file_out[512];
 	struct stat *filestats = (struct stat *) malloc(sizeof(struct stat));
 	if (argc!= 2) {
 		printf("Wrong input\n");
-- 
cgit v1.1-32-gdbae