diff options
author | Simon Busch <morphis@gravedo.de> | 2011-11-15 08:29:22 +0100 |
---|---|---|
committer | Simon Busch <morphis@gravedo.de> | 2011-11-15 08:29:50 +0100 |
commit | a87132281b97b19b47796def4fd01f1fa6834b95 (patch) | |
tree | 2b4054de01ae0843d775e690adfca0c46b4fcd78 /samsung-ipc | |
parent | 927ac03dcee2c2260c3b7892a4edace88d3e52ea (diff) | |
download | external_libsamsung-ipc-a87132281b97b19b47796def4fd01f1fa6834b95.zip external_libsamsung-ipc-a87132281b97b19b47796def4fd01f1fa6834b95.tar.gz external_libsamsung-ipc-a87132281b97b19b47796def4fd01f1fa6834b95.tar.bz2 |
Fix missing iteration in method ipc_call_list_response_get_entry with num = 0
Signed-off-by: Simon Busch <morphis@gravedo.de>
Diffstat (limited to 'samsung-ipc')
-rw-r--r-- | samsung-ipc/call.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/samsung-ipc/call.c b/samsung-ipc/call.c index 2f13ba3..0434c94 100644 --- a/samsung-ipc/call.c +++ b/samsung-ipc/call.c @@ -71,7 +71,7 @@ struct ipc_call_list_entry* ipc_call_list_response_get_entry(struct ipc_message_ if (num > count) return NULL; - for (n = 0; n < num; n++) + for (n = 0; n < num + 1; n++) { entry = (struct ipc_call_list_entry*) (response->data + pos); pos += (unsigned int) (sizeof(struct ipc_call_list_entry) + entry->number_len); |