From bee3fda65617f892e1a131f1cecb2933c4425d97 Mon Sep 17 00:00:00 2001 From: Parthasarathy Bhuvaragan Date: Wed, 3 Sep 2014 09:44:57 +0200 Subject: [PATCH] update result ptr before return Change-Id: If976f5c769d8ba83eefa1693e6969ef17f357ba8 Signed-off-by: Parthasarathy Bhuvaragan --- lib/helper.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/helper.c b/lib/helper.c index 4b903b0..95d641e 100644 --- a/lib/helper.c +++ b/lib/helper.c @@ -357,6 +357,7 @@ int str2char(const char *str, int8_t * chr_ptr) if (arg_long < INT8_MIN || arg_long > INT8_MAX) { return (-3); } + *chr_ptr = (uint8_t)arg_long; return 0; } /* str2char(...) */