Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libedit Add missing *
details: https://anonhg.NetBSD.org/src/rev/5068550f0e81
branches: trunk
changeset: 771301:5068550f0e81
user: christos <christos%NetBSD.org@localhost>
date: Fri Nov 18 20:38:42 2011 +0000
description:
Add missing *
diffstat:
lib/libedit/readline.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r e830bed2c3e3 -r 5068550f0e81 lib/libedit/readline.c
--- a/lib/libedit/readline.c Fri Nov 18 20:32:00 2011 +0000
+++ b/lib/libedit/readline.c Fri Nov 18 20:38:42 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: readline.c,v 1.99 2011/08/16 16:25:15 christos Exp $ */
+/* $NetBSD: readline.c,v 1.100 2011/11/18 20:38:42 christos Exp $ */
/*-
* Copyright (c) 1997 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
#include "config.h"
#if !defined(lint) && !defined(SCCSID)
-__RCSID("$NetBSD: readline.c,v 1.99 2011/08/16 16:25:15 christos Exp $");
+__RCSID("$NetBSD: readline.c,v 1.100 2011/11/18 20:38:42 christos Exp $");
#endif /* not lint && not SCCSID */
#include <sys/types.h>
@@ -887,7 +887,7 @@
*output = NULL;
if (str[0] == history_subst_char) {
/* ^foo^foo2^ is equivalent to !!:s^foo^foo2^ */
- *output = el_malloc((strlen(str) + 4 + 1) * sizeof(*output));
+ *output = el_malloc((strlen(str) + 4 + 1) * sizeof(**output));
if (*output == NULL)
return 0;
(*output)[0] = (*output)[1] = history_expansion_char;
Home |
Main Index |
Thread Index |
Old Index