From 8611198abec2bc99160a94d8b3c102c03f9df0e9 Mon Sep 17 00:00:00 2001 From: Stathis Kamperis Date: Tue, 1 Jan 2008 20:02:19 +0200 Subject: [PATCH] Use prop_array_add() istead of prop_array_set() --- proplib/prop1.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proplib/prop1.c b/proplib/prop1.c index f0b3617..f094883 100644 --- a/proplib/prop1.c +++ b/proplib/prop1.c @@ -14,7 +14,7 @@ int main(int argc, char *argv[]) * and store it in the array */ for (i = 0; i < argc; i++) - prop_array_set(pa, i, prop_string_create_cstring_nocopy(argv[i])); + prop_array_add(pa, prop_string_create_cstring_nocopy(argv[i])); /* Export array contents to file as XML */ prop_array_externalize_to_file(pa, "./data.xml"); -- 2.11.4.GIT