mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-16 18:25:11 -06:00
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:
parent
c2ae90cc94
commit
2e658ee940
@ -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
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user