From 4fd99b5955a7b367ee5170a3899a5ae05baf99d6 Mon Sep 17 00:00:00 2001 From: Yuichi Nishiwaki Date: Sat, 28 Jun 2014 21:53:14 +0900 Subject: [PATCH] [bugfix] return value from pic_get_args does not include proc object --- src/string.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/string.c b/src/string.c index e9a0095b..6015688c 100644 --- a/src/string.c +++ b/src/string.c @@ -386,9 +386,9 @@ pic_str_string_fill_ip(pic_state *pic) n = pic_get_args(pic, "sc|ii", &str, &c, &start, &end); switch (n) { - case 1: - start = 0; case 2: + start = 0; + case 3: end = pic_strlen(str); }