aboutsummaryrefslogtreecommitdiffstats
path: root/samsung-ipc
diff options
context:
space:
mode:
authorSimon Busch <morphis@gravedo.de>2011-11-15 08:29:22 +0100
committerSimon Busch <morphis@gravedo.de>2011-11-15 08:29:50 +0100
commita87132281b97b19b47796def4fd01f1fa6834b95 (patch)
tree2b4054de01ae0843d775e690adfca0c46b4fcd78 /samsung-ipc
parent927ac03dcee2c2260c3b7892a4edace88d3e52ea (diff)
downloadexternal_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.c2
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);