projects
/
mmh
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Application of patch #5218: patch for bug #9742. Fixes a typo in the
[mmh]
/
sbr
/
mts.c
diff --git
a/sbr/mts.c
b/sbr/mts.c
index
169894f
..
7941e09
100644
(file)
--- a/
sbr/mts.c
+++ b/
sbr/mts.c
@@
-11,6
+11,7
@@
#include <h/mh.h> /* for snprintf() */
#include <h/nmh.h>
#include <h/mh.h> /* for snprintf() */
#include <h/nmh.h>
+#include <h/utils.h>
#define nmhetcdir(file) NMHETCDIR#file
#define nmhetcdir(file) NMHETCDIR#file
@@
-271,8
+272,8
@@
tailor_value (char *s)
*bp = 0;
len = strlen (buffer) + 1;
*bp = 0;
len = strlen (buffer) + 1;
- if ((bp = malloc (len)))
- memcpy (bp, buffer, len);
+ bp = mh_xmalloc (len);
+ memcpy (bp, buffer, len);
return bp;
}
return bp;
}