mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 17:59:20 -04:00
- Don't do two read()s, we're not on windows and don't have a \r to strip
out. Also fix an off-by-one error when trying to trim trailing spaces. - bump PORTREVISION PR: 41719 Submitted by: Michael Pearce <mpearce@coreth.com>
This commit is contained in:
parent
635f8e2ab0
commit
6fcbe10248
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=80679
2 changed files with 22 additions and 0 deletions
|
@ -7,6 +7,7 @@
|
|||
|
||||
PORTNAME= dbview
|
||||
PORTVERSION= 1.0.3
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= databases
|
||||
MASTER_SITES= ${MASTER_SITE_SUNSITE} \
|
||||
ftp://ftp.infodrom.north.de/pub/Linux/Devel/dbview/
|
||||
|
|
21
databases/dbview/files/patch-ab
Normal file
21
databases/dbview/files/patch-ab
Normal file
|
@ -0,0 +1,21 @@
|
|||
--- db_dump.c.orig Tue Oct 8 02:25:54 1996
|
||||
+++ db_dump.c Fri Aug 16 14:24:09 2002
|
||||
@@ -116,7 +116,7 @@
|
||||
{
|
||||
char *c=var;
|
||||
|
||||
- for (c+=strlen(var); isspace (*c); c--);
|
||||
+ for (c+=strlen(var)-1; isspace (*c); c--);
|
||||
|
||||
*(++c) = '\0';
|
||||
return var;
|
||||
@@ -210,7 +210,9 @@
|
||||
stack_field(fld);
|
||||
}
|
||||
read(dbfile,Buffer,1); /* read the silly little \r 0x0d character */
|
||||
+#ifdef I_USE_A_LAME_OS_LIKE_DOS
|
||||
read(dbfile,Buffer,1); /* strange, it only works if we read another byte */
|
||||
+#endif
|
||||
|
||||
return;
|
||||
}
|
Loading…
Add table
Reference in a new issue