diff options
author | garbled <garbled> | 1998-10-24 06:36:22 +0000 |
---|---|---|
committer | garbled <garbled> | 1998-10-24 06:36:22 +0000 |
commit | 6b36c4b0485059443f98c58ed6fae11cde87280a (patch) | |
tree | 18f6d74ffb3e4fecd0669fa83e33389cc68e706c | |
parent | 8abb608e6fb6e4c0e055e78270874904b14492e5 (diff) | |
download | pkgsrc-6b36c4b0485059443f98c58ed6fae11cde87280a.tar.gz |
Fix a buffer bug in seq.
-rw-r--r-- | parallel/clusterit/patches/patch-aa | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/parallel/clusterit/patches/patch-aa b/parallel/clusterit/patches/patch-aa new file mode 100644 index 00000000000..2f6607846dc --- /dev/null +++ b/parallel/clusterit/patches/patch-aa @@ -0,0 +1,22 @@ +$NetBSD: patch-aa,v 1.1 1998/10/24 06:36:22 garbled Exp $ +--- dsh/seq.c 1998/10/20 07:28:44 1.4 ++++ dsh/seq.c 1998/10/20 09:29:32 1.5 +@@ -227,7 +227,7 @@ + char buf[256]; + FILE *sd; + +- p = NULL; ++ p = buf; + i = 0; + + seqfile = getenv("SEQ_FILE"); +@@ -239,8 +239,7 @@ + if (sd == NULL) + sd = fopen(seqfile, "w"); + else { +- fscanf(sd, "%s", buf); +- p = strdup(buf); ++ fscanf(sd, "%s", p); + seqnumber = atoi(p); + fclose(sd); + sd = fopen(seqfile, "w"); |