projects
/
mmh
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
mmh.sh: Changed from -version to -Version, here too.
[mmh]
/
uip
/
slocal.c
diff --git
a/uip/slocal.c
b/uip/slocal.c
index
b83a268
..
9d46802
100644
(file)
--- a/
uip/slocal.c
+++ b/
uip/slocal.c
@@
-59,11
+59,11
@@
static struct swit switches[] = {
#define VERBSW 8
{ "verbose", 0 },
#define NVERBSW 9
#define VERBSW 8
{ "verbose", 0 },
#define NVERBSW 9
- { "noverbose", 0 },
+ { "noverbose", 2 },
#define DEBUGSW 10
{ "debug", 0 },
#define VERSIONSW 11
#define DEBUGSW 10
{ "debug", 0 },
#define VERSIONSW 11
- { "version", 0 },
+ { "Version", 0 },
#define HELPSW 12
{ "help", 0 },
{ NULL, 0 }
#define HELPSW 12
{ "help", 0 },
{ NULL, 0 }
@@
-174,9
+174,7
@@
main(int argc, char **argv)
char mailbox[BUFSIZ], tmpfil[BUFSIZ];
char **argp, **arguments;
char mailbox[BUFSIZ], tmpfil[BUFSIZ];
char **argp, **arguments;
-#ifdef LOCALE
setlocale(LC_ALL, "");
setlocale(LC_ALL, "");
-#endif
invo_name = mhbasename(*argv);
/* foil search of user profile/context */
invo_name = mhbasename(*argv);
/* foil search of user profile/context */
@@
-1107,6
+1105,7
@@
get_sender(char *envelope, char **sender)
i = strlen("From ");
strncpy(buffer, envelope + i, sizeof(buffer));
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;
if ((cp = strchr(buffer, '\n'))) {
*cp = '\0';
cp -= 24;