Correct various places in smtp.c where the reply string might not have been
[mmh] / mts / smtp / smtp.h
index 772035d..73eb5de 100644 (file)
@@ -11,6 +11,9 @@
 #define        S_SOML  2
 #define        S_SAML  3
 
+/* length is the length of the string in text[], which is also NUL
+ * terminated, so s.text[s.length] should always be 0.
+ */
 struct smtp {
     int code;
     int length;
@@ -21,7 +24,7 @@ struct smtp {
  * prototypes
  */
 /* int client (); */
-int sm_init (char *, char *, int, int, int, int, int);
+int sm_init (char *, char *, int, int, int, int, int, int, char *, char *);
 int sm_winit (int, char *);
 int sm_wadr (char *, char *, char *);
 int sm_waend (void);