Re: [PATCH] Re: sscanf("-1", "%d", &i) fails, returns 0

From: Henning P. Schmiedehausen (hps@intermeta.de)
Date: Sun Nov 10 2002 - 08:41:45 EST


"Randy.Dunlap" <rddunlap@osdl.org> writes:

>+ digit = *str;
>+ if (is_sign && digit == '-')
>+ digit = *(str + 1);

If signed is not allowed and you get a "-", you're in an error case
again...

        Regards
                Henning

-- 
Dipl.-Inf. (Univ.) Henning P. Schmiedehausen       -- Geschaeftsfuehrer
INTERMETA - Gesellschaft fuer Mehrwertdienste mbH     hps@intermeta.de

Am Schwabachgrund 22 Fon.: 09131 / 50654-0 info@intermeta.de D-91054 Buckenhof Fax.: 09131 / 50654-20 - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Fri Nov 15 2002 - 22:00:19 EST