From 1eef903c702ef52efcbf5e8b04117b3cec591922 Mon Sep 17 00:00:00 2001 From: laforge Date: Mon, 23 Jul 2001 02:14:22 +0000 Subject: further fixes of string_to_number fixes --- extensions/libipt_FTOS.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'extensions/libipt_FTOS.c') diff --git a/extensions/libipt_FTOS.c b/extensions/libipt_FTOS.c index 9312038..48f88ec 100644 --- a/extensions/libipt_FTOS.c +++ b/extensions/libipt_FTOS.c @@ -43,7 +43,9 @@ static struct option opts[] = { static void parse_ftos(const unsigned char *s, struct ipt_FTOS_info *finfo) { - int ftos = string_to_number(s, 0, 255); + unsigned int ftos; + + string_to_number(s, 0, 255, &ftos); finfo->ftos = (u_int8_t )ftos; return; } -- cgit v1.2.3