diff options
| author | Eli Zaretskii | 2013-09-05 11:01:04 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2013-09-05 11:01:04 +0300 |
| commit | 41306318777a942420bc4feadbfacf662ea179dc (patch) | |
| tree | 669e5cca02f95d6064ce73c0d3fbbf91b8c8b563 /src/tparam.c | |
| parent | 141f1ff7a40cda10f0558e891dd196a943a5082e (diff) | |
| parent | 257b3b03cb1cff917e0b3b7832ad3eab5b59f257 (diff) | |
| download | emacs-41306318777a942420bc4feadbfacf662ea179dc.tar.gz emacs-41306318777a942420bc4feadbfacf662ea179dc.zip | |
Merge from trunk after a lot of time.
Diffstat (limited to 'src/tparam.c')
| -rw-r--r-- | src/tparam.c | 14 |
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 | ||
| 5 | This program is free software; you can redistribute it and/or modify | 5 | This program is free software; you can redistribute it and/or modify |
| 6 | it under the terms of the GNU General Public License as published by | 6 | it 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 | |||
| 13 | GNU General Public License for more details. | 13 | GNU General Public License for more details. |
| 14 | 14 | ||
| 15 | You should have received a copy of the GNU General Public License | 15 | You should have received a copy of the GNU General Public License |
| 16 | along with this program; see the file COPYING. If not, write to | 16 | along with this program. If not, see <http://www.gnu.org/licenses/>. */ |
| 17 | the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | ||
| 18 | Boston, 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 |