summaryrefslogtreecommitdiff
path: root/parallel/clusterit/patches
diff options
context:
space:
mode:
authorgarbled <garbled>1998-10-24 06:36:22 +0000
committergarbled <garbled>1998-10-24 06:36:22 +0000
commit45afef38f162a79f27cac53637a34bad18dbec0b (patch)
tree18f6d74ffb3e4fecd0669fa83e33389cc68e706c /parallel/clusterit/patches
parent9ea85e3de6935255fdc2578f100994aeee0e4dcf (diff)
downloadpkgsrc-45afef38f162a79f27cac53637a34bad18dbec0b.tar.gz
Fix a buffer bug in seq.
Diffstat (limited to 'parallel/clusterit/patches')
-rw-r--r--parallel/clusterit/patches/patch-aa22
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");