summaryrefslogtreecommitdiff
path: root/parallel/clusterit
diff options
context:
space:
mode:
authorgarbled <garbled@pkgsrc.org>1998-10-24 06:36:22 +0000
committergarbled <garbled@pkgsrc.org>1998-10-24 06:36:22 +0000
commit13a20ee276552a41ba97a1fce1860c1f9566cecd (patch)
tree18f6d74ffb3e4fecd0669fa83e33389cc68e706c /parallel/clusterit
parent818a382b1f3283d1b85e21cda4bb285ad974b854 (diff)
downloadpkgsrc-13a20ee276552a41ba97a1fce1860c1f9566cecd.tar.gz
Fix a buffer bug in seq.
Diffstat (limited to 'parallel/clusterit')
-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");