Source-Changes-HG archive

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

[src/trunk]: src/lib/libterminfo Move pathbuf into the function where it's ac...



details:   https://anonhg.NetBSD.org/src/rev/4e33bc85e255
branches:  trunk
changeset: 353654:4e33bc85e255
user:      roy <roy%NetBSD.org@localhost>
date:      Tue May 16 08:52:14 2017 +0000

description:
Move pathbuf into the function where it's actually used.

diffstat:

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

diffs (34 lines):

diff -r dc5f18986aea -r 4e33bc85e255 lib/libterminfo/term.c
--- a/lib/libterminfo/term.c    Tue May 16 07:43:50 2017 +0000
+++ b/lib/libterminfo/term.c    Tue May 16 08:52:14 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: term.c,v 1.22 2017/05/04 09:42:23 roy Exp $ */
+/* $NetBSD: term.c,v 1.23 2017/05/16 08:52:14 roy Exp $ */
 
 /*
  * Copyright (c) 2009, 2010, 2011 The NetBSD Foundation, Inc.
@@ -28,7 +28,7 @@
  */
 
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: term.c,v 1.22 2017/05/04 09:42:23 roy Exp $");
+__RCSID("$NetBSD: term.c,v 1.23 2017/05/16 08:52:14 roy Exp $");
 
 #include <sys/stat.h>
 
@@ -47,7 +47,6 @@
 #define _PATH_TERMINFO         "/usr/share/misc/terminfo"
 
 static char database[PATH_MAX];
-static char pathbuf[PATH_MAX];
 const char *_ti_database;
 
 /* Include a generated list of pre-compiled terminfo descriptions. */
@@ -301,6 +300,7 @@
 _ti_dbgettermp(TERMINAL *term, const char *path, const char *name, int flags)
 {
        const char *p;
+       char pathbuf[PATH_MAX];
        size_t l;
        int r, e;
 



Home | Main Index | Thread Index | Old Index