summaryrefslogtreecommitdiff
path: root/lib/helper.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/helper.c')
-rw-r--r--lib/helper.c1
1 files changed, 1 insertions, 0 deletions
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(...) */