Mercurial > hg > octave-lyh
view liboctave/system/pathlen.h @ 17331:aa662d2e5829
avoid crash if keyboard command is in startup file (bug #39846)
* input.cc (octave_base_reader::do_input_echo, get_debug_input):
Avoid dereferencing global LEXER variable if it is NULL.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Fri, 23 Aug 2013 17:13:34 -0400 |
parents | 648dabbb4c6b |
children |
line wrap: on
line source
/* Copyright (C) 1996-2012 John W. Eaton This file is part of Octave. Octave is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. Octave is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with Octave; see the file COPYING. If not, see <http://www.gnu.org/licenses/>. */ #if !defined (octave_pathlen_h) #define octave_pathlen_h 1 #ifdef HAVE_SYS_PARAM_H #include <sys/param.h> #endif #ifndef MAXPATHLEN #define MAXPATHLEN 1024 #endif #endif