]> git.marmaro.de Git - mmh/blobdiff - uip/slocal.c
Removed -(no)push and -(no)forward flags from send, spost and whatnow.
[mmh] / uip / slocal.c
index b83a2686ad08bf2c61d21d6692dcc77a331110cc..765bcbd621cde808dc44353f28b08b92b19210ad 100644 (file)
@@ -1107,6 +1107,7 @@ get_sender(char *envelope, char **sender)
 
        i = strlen("From ");
        strncpy(buffer, envelope + i, sizeof(buffer));
+       buffer[sizeof buffer -1] = '\0';  /* ensure termination */
        if ((cp = strchr(buffer, '\n'))) {
                *cp = '\0';
                cp -= 24;