aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFumitoshi UKAI <ukai@debian.or.jp>2002-03-27 15:26:09 +0000
committerFumitoshi UKAI <ukai@debian.or.jp>2002-03-27 15:26:09 +0000
commit067d72b5dac4920bed7af87465bab9a4f8b80405 (patch)
treed368814cd9d19b75e9b1d4d24f0f7ea4251830f8
parent[w3m-dev 03140] Forward: Bug#139305: (diff)
downloadw3m-067d72b5dac4920bed7af87465bab9a4f8b80405.tar.gz
w3m-067d72b5dac4920bed7af87465bab9a4f8b80405.zip
[w3m-dev 03145] header option
* main.c (MAIN): hide args for security From: Yuuichi Teranishi <teranisi@gohome.org>
-rw-r--r--ChangeLog7
-rw-r--r--main.c6
2 files changed, 11 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 7055c2b..698ed2e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2002-03-28 Yuuichi Teranishi <teranisi@gohome.org>
+
+ * [w3m-dev 03145] header option
+ * main.c (MAIN): hide args for security
+
2002-03-23 Kiyokazu SUTO <suto@ks-and-ks.ne.jp>
* [w3m-dev 03140] Forward: Bug#139305:
@@ -3287,4 +3292,4 @@
* release-0-2-1
* import w3m-0.2.1
-$Id: ChangeLog,v 1.360 2002/03/22 15:35:44 ukai Exp $
+$Id: ChangeLog,v 1.361 2002/03/27 15:26:09 ukai Exp $
diff --git a/main.c b/main.c
index db07416..4c9dc09 100644
--- a/main.c
+++ b/main.c
@@ -1,4 +1,4 @@
-/* $Id: main.c,v 1.92 2002/03/22 15:35:44 ukai Exp $ */
+/* $Id: main.c,v 1.93 2002/03/27 15:26:09 ukai Exp $ */
#define MAINPROGRAM
#include "fm.h"
#include <signal.h>
@@ -626,6 +626,10 @@ MAIN(int argc, char **argv, char **envp)
else
Strcat(header_string, hs);
}
+ while (argv[i][0]) {
+ argv[i][0] = '\0';
+ argv[i]++;
+ }
}
#ifdef USE_MOUSE
else if (!strcmp("-no-mouse", argv[i])) {