X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=uip%2Fslocal.c;h=bd6b0a2714dc49c5e0b2a904bb68be518cb1de63;hb=32b2354dbaf4bf934936eb5b102a4a3d2fdd209a;hp=b83a2686ad08bf2c61d21d6692dcc77a331110cc;hpb=2e5668919988fce4e523cbf2294698841b1106a0;p=mmh diff --git a/uip/slocal.c b/uip/slocal.c index b83a268..bd6b0a2 100644 --- a/uip/slocal.c +++ b/uip/slocal.c @@ -63,7 +63,7 @@ static struct swit switches[] = { #define DEBUGSW 10 { "debug", 0 }, #define VERSIONSW 11 - { "version", 0 }, + { "Version", 0 }, #define HELPSW 12 { "help", 0 }, { NULL, 0 } @@ -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;