summaryrefslogtreecommitdiff
path: root/databases/tinycdb/files/patch-cdb.c
diff options
context:
space:
mode:
Diffstat (limited to 'databases/tinycdb/files/patch-cdb.c')
-rw-r--r--databases/tinycdb/files/patch-cdb.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/databases/tinycdb/files/patch-cdb.c b/databases/tinycdb/files/patch-cdb.c
index 5b44c5118642..ea47c918a8fd 100644
--- a/databases/tinycdb/files/patch-cdb.c
+++ b/databases/tinycdb/files/patch-cdb.c
@@ -1,11 +1,11 @@
---- cdb.c.orig Mon Dec 10 06:18:02 2001
-+++ cdb.c Mon Mar 3 08:38:57 2003
-@@ -144,7 +144,7 @@
+--- cdb.c.orig Tue May 17 17:42:12 2005
++++ cdb.c Tue May 17 17:42:28 2005
+@@ -143,7 +143,7 @@
if (printf(mode == 'd' ? "+%u,%u:" : "+%u:", klen, vlen) < 0) return -1;
if (fcpy(f, stdout, klen, &pos, eod) != 0) return -1;
if (mode == 'd')
- if (!fputs(flags & F_MAP ? " " : "->", stdout))
+ if (fputs(flags & F_MAP ? " " : "->", stdout) == EOF)
- return -1;
+ return -1;
if (fcpy(f, mode == 'd' ? stdout : NULL, vlen, &pos, eod) != 0)
return -1;