aboutsummaryrefslogtreecommitdiffstats
path: root/src/tparam.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/tparam.c')
-rw-r--r--src/tparam.c14
1 files changed, 6 insertions, 8 deletions
diff --git a/src/tparam.c b/src/tparam.c
index 4d26ef524fb..c3ecfb9e3a3 100644
--- a/src/tparam.c
+++ b/src/tparam.c
@@ -1,6 +1,6 @@
1/* Merge parameters into a termcap entry string. 1/* Merge parameters into a termcap entry string.
2 Copyright (C) 1985, 1987, 1993, 1995, 2000, 2001, 2002, 2003, 2004, 2 Copyright (C) 1985, 1987, 1993, 1995, 2000-2008, 2013 Free Software
3 2005, 2006, 2007, 2008 Free Software Foundation, Inc. 3 Foundation, Inc.
4 4
5This program is free software; you can redistribute it and/or modify 5This program is free software; you can redistribute it and/or modify
6it under the terms of the GNU General Public License as published by 6it under the terms of the GNU General Public License as published by
@@ -13,13 +13,11 @@ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13GNU General Public License for more details. 13GNU General Public License for more details.
14 14
15You should have received a copy of the GNU General Public License 15You should have received a copy of the GNU General Public License
16along with this program; see the file COPYING. If not, write to 16along with this program. If not, see <http://www.gnu.org/licenses/>. */
17the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18Boston, MA 02110-1301, USA. */
19 17
20/* Emacs config.h may rename various library functions such as malloc. */ 18/* Emacs config.h may rename various library functions such as malloc. */
21#include <config.h> 19#include <config.h>
22#include <setjmp.h> 20
23#include "lisp.h" /* for xmalloc */ 21#include "lisp.h" /* for xmalloc */
24#include "tparam.h" 22#include "tparam.h"
25 23
@@ -98,7 +96,7 @@ tparam1 (const char *string, char *outstring, int len,
98 if (outlen == 0) 96 if (outlen == 0)
99 { 97 {
100 outlen = len + 40; 98 outlen = len + 40;
101 new = (char *) xmalloc (outlen); 99 new = xmalloc (outlen);
102 memcpy (new, outstring, offset); 100 memcpy (new, outstring, offset);
103 } 101 }
104 else 102 else
@@ -247,7 +245,7 @@ tparam1 (const char *string, char *outstring, int len,
247 break; 245 break;
248 246
249 default: 247 default:
250 abort (); 248 emacs_abort ();
251 } 249 }
252 } 250 }
253 else 251 else