Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.sbin/makemandb Use emalloc in one more place, like the r...
details: https://anonhg.NetBSD.org/src/rev/4cc1e6a692a0
branches: trunk
changeset: 781461:4cc1e6a692a0
user: wiz <wiz%NetBSD.org@localhost>
date: Fri Sep 07 11:29:04 2012 +0000
description:
Use emalloc in one more place, like the rest of the code does.
>From Abhinav Upadhyay <er.abhinav.upadhyay%gmail.com@localhost>.
diffstat:
usr.sbin/makemandb/makemandb.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r ff522e297879 -r 4cc1e6a692a0 usr.sbin/makemandb/makemandb.c
--- a/usr.sbin/makemandb/makemandb.c Fri Sep 07 11:28:46 2012 +0000
+++ b/usr.sbin/makemandb/makemandb.c Fri Sep 07 11:29:04 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: makemandb.c,v 1.13 2012/08/29 20:33:01 wiz Exp $ */
+/* $NetBSD: makemandb.c,v 1.14 2012/09/07 11:29:04 wiz Exp $ */
/*
* Copyright (c) 2011 Abhinav Upadhyay <er.abhinav.upadhyay%gmail.com@localhost>
* Copyright (c) 2011 Kristaps Dzonsons <kristaps%bsd.lv@localhost>
@@ -17,7 +17,7 @@
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: makemandb.c,v 1.13 2012/08/29 20:33:01 wiz Exp $");
+__RCSID("$NetBSD: makemandb.c,v 1.14 2012/09/07 11:29:04 wiz Exp $");
#include <sys/stat.h>
#include <sys/types.h>
@@ -361,7 +361,7 @@
if (manconf) {
char *arg;
size_t command_len = shquote(manconf, NULL, 0) + 1;
- arg = malloc(command_len );
+ arg = emalloc(command_len);
shquote(manconf, arg, command_len);
easprintf(&command, "man -p -C %s", arg);
free(arg);
Home |
Main Index |
Thread Index |
Old Index