Package: dbview
Version: 1.0.3-7
Severity: important
Tags: patch
Hello,
When trying to open some dbf-files (not all) with dbview 1.0.3-7, the program
exits with no output, while when opening the same file with 1.0.3-5, it showed
correctly.
When adding back the following line to db_dump.c, dbview works again:
read(dbfile,Buffer,1); /* strange, it only works if we read
another byte */
This line was removed by dbview_1.0.3-7.diff:
--- dbview-1.0.3.orig/db_dump.c
+++ dbview-1.0.3/db_dump.c
@@ -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,6 @@
stack_field(fld);
}
read(dbfile,Buffer,1); /* read the silly little \r 0x0d
character */
- read(dbfile,Buffer,1); /* strange, it only works if we read
another byte */
return;
}
Greetings,
Michael De Nil
-- System Information:
Debian Release: 3.1
Architecture: i386 (i686)
Kernel: Linux 2.6.11.7
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)
Versions of packages dbview depends on:
ii libc6 2.3.2.ds1-22 GNU C Library: Shared libraries an
-- no debconf information
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]