diff options
-rw-r--r-- | smbutil.c | 14 | ||||
-rw-r--r-- | smtp.c | 2 |
2 files changed, 8 insertions, 8 deletions
@@ -73,14 +73,14 @@ dumpRaw(fp,((unsigned char*)structPtr)+IVAL(&structPtr->header.offset,0),SVAL(&s static void dumpRaw(FILE *fp, unsigned char *buf, size_t len) - { - size_t i; - - for (i=0; i<len; ++i) - fprintf(fp,"%02x ",buf[i]); - +{ + size_t i; + + for (i=0; i<len; ++i) + fprintf(fp,"%02x ",buf[i]); + fprintf(fp,"\n"); - } +} /* helper macro to destructively resize buffers; assumes that bufsiz * is initialized to 0 if buf is unallocated! */ @@ -205,7 +205,7 @@ int SMTP_ehlo(int sock, char smtp_mode, const char *host, char *name, char *pass *opt |= hp->value; if (strncmp(hp->name, "AUTH ", 5) == 0) strncpy(auth_response, smtp_response, sizeof(auth_response)); - auth_response[sizeof(auth_response)-1] = '\0'; + auth_response[sizeof(auth_response)-1] = '\0'; } if ((smtp_response[0] == '1' || smtp_response[0] == '2' || smtp_response[0] == '3') && smtp_response[3] == ' ') { if (*opt & ESMTP_AUTH) |