From 67ea22978ffb134a4b94e0c3cdb0802b3360a249 Mon Sep 17 00:00:00 2001
From: Cyrille Bagard <nocbos@gmail.com>
Date: Mon, 19 Dec 2016 20:37:22 +0100
Subject: Set the argument counter when building an arguments list.

---
 ChangeLog                       | 5 +++++
 src/arch/dalvik/operands/args.c | 2 ++
 2 files changed, 7 insertions(+)

diff --git a/ChangeLog b/ChangeLog
index 4821a08..62a4158 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 16-12-18  Cyrille Bagard <nocbos@gmail.com>
 
+	* src/arch/dalvik/operands/args.c:
+	Set the argument counter when building an arguments list.
+
+16-12-18  Cyrille Bagard <nocbos@gmail.com>
+
 	* src/arch/dalvik/instruction.c:
 	Clean the code and remove compilation warnings.
 
diff --git a/src/arch/dalvik/operands/args.c b/src/arch/dalvik/operands/args.c
index 5ba552b..5fa8a65 100644
--- a/src/arch/dalvik/operands/args.c
+++ b/src/arch/dalvik/operands/args.c
@@ -241,6 +241,8 @@ static bool g_dalvik_args_operand_do_init(GDalvikArgsOperand *operand, const GDa
         for (i = 0; i < fake->count; i++)
             operand->args[i] = fake->args[i];
 
+        operand->count = fake->count;
+
     }
 
     return true;
-- 
cgit v0.11.2-87-g4458