]> diplodocus.org Git - nmh/blobdiff - sbr/utils.c
Print port number in the connection error message
[nmh] / sbr / utils.c
index c385b45b09999cb71ad1350428d9c54318e20a12..fe531ac286e8703100253f6878b711b6de8eff2f 100644 (file)
@@ -6,6 +6,14 @@
  */
 
 #include "h/mh.h"
+#include "read_yes_or_no_if_tty.h"
+#include "concat.h"
+#include "r1bindex.h"
+#include "context_foil.h"
+#include "context_replace.h"
+#include "context_read.h"
+#include "context_find.h"
+#include "print_help.h"
 #include "error.h"
 #include "h/utils.h"
 #include "h/signals.h"
@@ -169,7 +177,7 @@ char *
 addlist (char *list, const char *item)
 {
     if (list)
-       list = add (", ", list);
+       list = add (", ", list);
 
     return add (item, list);
 }
@@ -337,7 +345,7 @@ nmh_strcasestr (const char *s1, const char *s2)
 }
 
 
-/* truncpy copies at most size - 1 chars from non-NULL src to non-NULL,
+/* trunccpy copies at most size-1 chars from non-NULL src to non-NULL,
  * non-overlapping, dst, and ensures dst is NUL terminated.  If size is
  * zero then it aborts as dst cannot be NUL terminated.
  *