Since fputs doesn't return the number of bytes written, bump dboffset
by strlen(s) instead. PR: 21705 Submitted by: Alexander Kabaev <ak03@gte.com>
This commit is contained in:
parent
eb9427f9f8
commit
3f7e25a51d
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=38733
11
devel/cscope/files/patch-aa
Normal file
11
devel/cscope/files/patch-aa
Normal file
@ -0,0 +1,11 @@
|
||||
--- src/constants.h.orig Sun Feb 25 14:40:57 2001
|
||||
+++ src/constants.h Sun Feb 25 14:41:08 2001
|
||||
@@ -43,7 +43,7 @@
|
||||
|
||||
/* database output macros that update its offset */
|
||||
#define dbputc(c) (++dboffset, (void) putc(c, newrefs))
|
||||
-#if Linux || BSD && !sun
|
||||
+#if Linux || __FreeBSD__ || BSD && !sun
|
||||
#define dbfputs(s) (dboffset += strlen(s), fputs(s, newrefs))
|
||||
#else
|
||||
#define dbfputs(s) (dboffset += fputs(s, newrefs))
|
Loading…
Reference in New Issue
Block a user