Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc/stdlib The OpenBSD strtonum() only accepts base 10 ...
details: https://anonhg.NetBSD.org/src/rev/8a16c34199b3
branches: trunk
changeset: 806824:8a16c34199b3
user: christos <christos%NetBSD.org@localhost>
date: Tue Mar 10 12:57:56 2015 +0000
description:
The OpenBSD strtonum() only accepts base 10 keywords. (Kamil Rytarowski)
diffstat:
lib/libc/stdlib/strtonum.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r b8281fb0634c -r 8a16c34199b3 lib/libc/stdlib/strtonum.c
--- a/lib/libc/stdlib/strtonum.c Tue Mar 10 12:17:50 2015 +0000
+++ b/lib/libc/stdlib/strtonum.c Tue Mar 10 12:57:56 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: strtonum.c,v 1.3 2015/02/05 16:01:38 christos Exp $ */
+/* $NetBSD: strtonum.c,v 1.4 2015/03/10 12:57:56 christos Exp $ */
/*-
* Copyright (c) 2014 The NetBSD Foundation, Inc.
* All rights reserved.
@@ -29,7 +29,7 @@
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: strtonum.c,v 1.3 2015/02/05 16:01:38 christos Exp $");
+__RCSID("$NetBSD: strtonum.c,v 1.4 2015/03/10 12:57:56 christos Exp $");
#define _OPENBSD_SOURCE
#include <stdio.h>
@@ -48,7 +48,7 @@
if (errstr == NULL)
errstr = &resp;
- rv = (long long)strtoi(nptr, NULL, 0, minval, maxval, &e);
+ rv = (long long)strtoi(nptr, NULL, 10, minval, maxval, &e);
if (e == 0) {
*errstr = NULL;
Home |
Main Index |
Thread Index |
Old Index