Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.sbin/makemandb Kill bad magic invocation.
details: https://anonhg.NetBSD.org/src/rev/fedcd67004b8
branches: trunk
changeset: 773589:fedcd67004b8
user: joerg <joerg%NetBSD.org@localhost>
date: Tue Feb 07 23:03:34 2012 +0000
description:
Kill bad magic invocation.
diffstat:
usr.sbin/makemandb/apropos.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 17c0fc92a7cd -r fedcd67004b8 usr.sbin/makemandb/apropos.c
--- a/usr.sbin/makemandb/apropos.c Tue Feb 07 22:59:32 2012 +0000
+++ b/usr.sbin/makemandb/apropos.c Tue Feb 07 23:03:34 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: apropos.c,v 1.3 2012/02/07 22:59:32 joerg Exp $ */
+/* $NetBSD: apropos.c,v 1.4 2012/02/07 23:03:34 joerg Exp $ */
/*-
* Copyright (c) 2011 Abhinav Upadhyay <er.abhinav.upadhyay%gmail.com@localhost>
* All rights reserved.
@@ -31,7 +31,7 @@
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: apropos.c,v 1.3 2012/02/07 22:59:32 joerg Exp $");
+__RCSID("$NetBSD: apropos.c,v 1.4 2012/02/07 23:03:34 joerg Exp $");
#include <err.h>
#include <search.h>
@@ -103,7 +103,7 @@
case '7':
case '8':
case '9':
- aflags.sec_nums[atoi(&ch) - 1] = 1;
+ aflags.sec_nums[ch - '1'] = 1;
break;
case 'C':
aflags.no_context = 1;
Home |
Main Index |
Thread Index |
Old Index