diff options
author | edwin <edwin@FreeBSD.org> | 2002-11-24 12:04:25 +0800 |
---|---|---|
committer | edwin <edwin@FreeBSD.org> | 2002-11-24 12:04:25 +0800 |
commit | 93b20d60efaea845ac00fe6eed091e6ca0d26141 (patch) | |
tree | 46c54071c971000c66adab5281ab17f8401742c1 /security | |
parent | 626b6fe3b16ed7a688c443fd67f7dc7482e370cd (diff) | |
download | freebsd-ports-gnome-93b20d60efaea845ac00fe6eed091e6ca0d26141.tar.gz freebsd-ports-gnome-93b20d60efaea845ac00fe6eed091e6ca0d26141.tar.zst freebsd-ports-gnome-93b20d60efaea845ac00fe6eed091e6ca0d26141.zip |
Fix compile problem under FreeBSD current
PR: ports/45662
Submitted by: Clement Laforet <sheepkiller@cultdeadsheep.org>
Diffstat (limited to 'security')
-rw-r--r-- | security/tea-total/files/patch-getarg.c | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/security/tea-total/files/patch-getarg.c b/security/tea-total/files/patch-getarg.c new file mode 100644 index 000000000000..47c7f64b3533 --- /dev/null +++ b/security/tea-total/files/patch-getarg.c @@ -0,0 +1,28 @@ +--- getarg.c.orig Sun Nov 24 04:04:44 2002 ++++ getarg.c Thu May 9 04:30:09 2002 +@@ -110,7 +110,7 @@ + + /* Copy the arguments, ignoring the first argument (the program name) */ + for(i = 1; i < argc; i++) { +- len = strlen(argv[i]); ++ len = strlen(argv[i]) + 1; + if(!(state->argv[i - 1] = malloc(len))) { + /* It failed, so free the list and return */ + while(i-- > 1) free(state->argv[i]); +@@ -199,7 +199,6 @@ + return(state->realargv[i + 2]); + } else continue; + } +- + + /* For each character until the terminating zero */ + for(p = &state->argv[i][1]; *p; p++) { +@@ -235,7 +234,7 @@ + if((!*++p)&&(p = next_arg(state, i))) { + *p = GETARG_USEDFLAG; + return(state->realargv[i + 2]); +- } else continue; ++ } else return NULL; + } + } + |