summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Martin Aumueller2008-07-30 23:05:25 +0200
committerGravatar Matt Colyer2008-07-30 21:29:59 -0700
commit2a406b92bc5e8d8d0b5c6cd78327b3d08a8bbeff (patch)
treeb7e7a59f038346ddc8f3d4aada29637f60bf4161 /src
parentdb67cbb96cd6e3c13363e050089d29a82f9142b3 (diff)
downloadlibimobiledevice-2a406b92bc5e8d8d0b5c6cd78327b3d08a8bbeff.tar.gz
libimobiledevice-2a406b92bc5e8d8d0b5c6cd78327b3d08a8bbeff.tar.bz2
Apparently missing parens (with respect to string length calculation).
Signed-off-by: Matt Colyer <matt@colyer.name>
Diffstat (limited to 'src')
-rw-r--r--src/plist.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plist.c b/src/plist.c
index cbd6302..a375d5b 100644
--- a/src/plist.c
+++ b/src/plist.c
@@ -71,7 +71,7 @@ char **read_dict_element_strings(xmlNode *dict) {
// one last thing...
old = return_me;
- return_me = realloc(return_me, sizeof(char*) * current_length+1);
+ return_me = realloc(return_me, sizeof(char*) * (current_length+1));
return_me[current_pos] = strdup("");
return return_me;