properly ignore the return value of fgets(). Fixes an FC4 error.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13514 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Derek Atkins 2006-03-07 15:19:19 +00:00
parent c2ae90cc94
commit 2e658ee940
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2006-03-07 Derek Atkins <derek@ihtfp.com>
* lib/libgsf-1.12.3/tests/test-msole1.c:
properly ignore the return value of fgets(). Fixes an FC4 error.
2006-03-06 Joshua Sled <jsled@asynchronous.org>
* src/gnome/glade/sched-xact.glade: Change initial sensitivity of

View File

@ -60,7 +60,8 @@ read_types (char const *fname, GPtrArray **types)
}
while (!feof(file)) {
unsigned char *p;
fgets ((char *)buffer, sizeof (buffer)-1, file);
unsigned char *unused;
unused = fgets ((char *)buffer, sizeof (buffer)-1, file);
for (p=buffer;*p;p++)
if (*p=='0' && *(p+1)=='x') {
GENERIC_TYPE *bt = g_new (GENERIC_TYPE,1);