projects
/
mmh
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Removed #ifndef RAND/#endif that no longer had any effect.
[mmh]
/
sbr
/
concat.c
diff --git
a/sbr/concat.c
b/sbr/concat.c
index
939a484
..
82979f5
100644
(file)
--- a/
sbr/concat.c
+++ b/
sbr/concat.c
@@
-3,10
+3,13
@@
* concat.c -- concatenate a variable number (minimum of 1)
* of strings in managed memory
*
* concat.c -- concatenate a variable number (minimum of 1)
* of strings in managed memory
*
- * $Id$
+ * This code is Copyright (c) 2002, by the authors of nmh. See the
+ * COPYRIGHT file in the root directory of the nmh distribution for
+ * complete copyright information.
*/
#include <h/mh.h>
*/
#include <h/mh.h>
+#include <h/utils.h>
char *
char *
@@
-22,8
+25,7
@@
concat (char *s1, ...)
len += strlen (cp);
va_end(list);
len += strlen (cp);
va_end(list);
- if (!(dp = sp = malloc(len)))
- adios (NULL, "unable to allocate string storage");
+ dp = sp = mh_xmalloc(len);
sp = copy(s1, sp);
sp = copy(s1, sp);