]> diplodocus.org Git - nmh/blobdiff - sbr/mts.c
Since faqs.org appears to be moribund, I'm now using my site as the
[nmh] / sbr / mts.c
index 40d4e279361fc42e9da895ff5e109a58e5456c0f..7941e090dc4c0eb2b39bf93f091f918e5fff2570 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/utils.h>
 
 #define nmhetcdir(file) NMHETCDIR#file
 
@@ -27,8 +28,6 @@
 #define        NOTOK   (-1)
 #define        OK        0
 
-extern int errno;
-
 /*
  * static prototypes
  */
@@ -273,8 +272,8 @@ tailor_value (char *s)
     *bp = 0;
 
     len = strlen (buffer) + 1;
-    if ((bp = malloc (len)))
-       memcpy (bp, buffer, len);
+    bp = mh_xmalloc (len);
+    memcpy (bp, buffer, len);
 
     return bp;
 }