aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2007-10-04 12:20:24 +0000
committerSergey Poznyakoff <gray@gnu.org.ua>2007-10-04 12:20:24 +0000
commit979e3cb16c99915ee844196a84ee881f043caced (patch)
tree540708ab7434ef697f94b637c13158e8831b38a2
parentd1e19a11d06653c8bd33b99d968a1d8a715e9656 (diff)
downloadswis-979e3cb16c99915ee844196a84ee881f043caced.tar.gz
swis-979e3cb16c99915ee844196a84ee881f043caced.tar.bz2
Bugfixes
git-svn-id: file:///svnroot/swis/trunk@14 05ba3e8d-823b-0410-8fb2-de0ee4edb5ba
-rw-r--r--ChangeLog1
-rw-r--r--src/html-strip.l2
-rw-r--r--src/readname.c4
3 files changed, 4 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 2da714c..4df9c30 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -7,7 +7,6 @@
* swis.h: Add new prototypes
* gnulib.modules: Add obstack
-
* src/Makefile.am (LDADD): Add LIBICONV
* configure.ac: Minor change
* gnulib.modules: Add iconv
diff --git a/src/html-strip.l b/src/html-strip.l
index a2dded3..8005ea7 100644
--- a/src/html-strip.l
+++ b/src/html-strip.l
@@ -272,7 +272,7 @@ main (int argc, char **argv)
program_name = argv[0];
yy_flex_debug = 0;
- while ((c = getopt_long (argc, argv, "0dhoT::tv", options, NULL)) != EOF)
+ while ((c = getopt_long (argc, argv, "0dhoT:tv", options, NULL)) != EOF)
{
switch (c)
{
diff --git a/src/readname.c b/src/readname.c
index def30b6..e10c282 100644
--- a/src/readname.c
+++ b/src/readname.c
@@ -137,7 +137,9 @@ update_argcv (int *pargc, char ***pargv)
int i, new_argc;
char **new_argv;
char *p, *start;
-
+
+ if (argcount == 0)
+ return;
new_argc = *pargc + argcount + 1;
new_argv = xmalloc (sizeof (new_argv[0]) * (new_argc + 1));
memcpy (new_argv, *pargv, sizeof (new_argv[0]) * *pargc);

Return to:

Send suggestions and report system problems to the System administrator.