Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libedit include the NULL in the argv conversion



details:   https://anonhg.NetBSD.org/src/rev/2e8c170a065a
branches:  trunk
changeset: 777996:2e8c170a065a
user:      christos <christos%NetBSD.org@localhost>
date:      Sun Mar 11 21:15:25 2012 +0000

description:
include the NULL in the argv conversion

diffstat:

 lib/libedit/eln.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 2eb6f3a7d618 -r 2e8c170a065a lib/libedit/eln.c
--- a/lib/libedit/eln.c Sun Mar 11 21:14:56 2012 +0000
+++ b/lib/libedit/eln.c Sun Mar 11 21:15:25 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: eln.c,v 1.13 2011/08/16 16:25:15 christos Exp $        */
+/*     $NetBSD: eln.c,v 1.14 2012/03/11 21:15:25 christos Exp $        */
 
 /*-
  * Copyright (c) 2009 The NetBSD Foundation, Inc.
@@ -34,7 +34,7 @@
  */
 #include "config.h"
 #if !defined(lint) && !defined(SCCSID)
-__RCSID("$NetBSD: eln.c,v 1.13 2011/08/16 16:25:15 christos Exp $");
+__RCSID("$NetBSD: eln.c,v 1.14 2012/03/11 21:15:25 christos Exp $");
 #endif /* not lint && not SCCSID */
 
 #include "histedit.h"
@@ -154,7 +154,7 @@
                            break;
                argv[0] = NULL;
                wargv = (const wchar_t **)
-                   ct_decode_argv(i, argv, &el->el_lgcyconv);
+                   ct_decode_argv(i + 1, argv, &el->el_lgcyconv);
                if (!wargv) {
                    ret = -1;
                    goto out;



Home | Main Index | Thread Index | Old Index