summaryrefslogtreecommitdiffstats
path: root/gl/xstrndup.c
diff options
context:
space:
mode:
Diffstat (limited to 'gl/xstrndup.c')
-rw-r--r--gl/xstrndup.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/gl/xstrndup.c b/gl/xstrndup.c
index afcbc1a..37488cd 100644
--- a/gl/xstrndup.c
+++ b/gl/xstrndup.c
@@ -1,11 +1,11 @@
1/* Duplicate a bounded initial segment of a string, with out-of-memory 1/* Duplicate a bounded initial segment of a string, with out-of-memory
2 checking. 2 checking.
3 Copyright (C) 2003, 2006 Free Software Foundation, Inc. 3 Copyright (C) 2003, 2006, 2007 Free Software 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
7 the Free Software Foundation; either version 2, or (at your option) 7 the Free Software Foundation; either version 3 of the License, or
8 any later version. 8 (at your option) any later version.
9 9
10 This program is distributed in the hope that it will be useful, 10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of 11 but WITHOUT ANY WARRANTY; without even the implied warranty of
@@ -13,15 +13,14 @@
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; if not, write to the Free Software Foundation, 16 along with this program. If not, see <http://www.gnu.org/licenses/>. */
17 Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
18 17
19#include <config.h> 18#include <config.h>
20 19
21/* Specification. */ 20/* Specification. */
22#include "xstrndup.h" 21#include "xstrndup.h"
23 22
24#include "strndup.h" 23#include <string.h>
25#include "xalloc.h" 24#include "xalloc.h"
26 25
27/* Return a newly allocated copy of at most N bytes of STRING. 26/* Return a newly allocated copy of at most N bytes of STRING.