[Kst] extragear/graphics/kst/kst/datasources/dirfile
George Staikos
staikos at kde.org
Tue Oct 11 07:07:09 CEST 2005
SVN commit 469422 by staikos:
Return properly when the second read returns 0. Please comment in the bug
report if this doesn't do what you expect.
BUG: 112762
M +2 -2 getdata.c
--- trunk/extragear/graphics/kst/kst/datasources/dirfile/getdata.c #469421:469422
@@ -1199,7 +1199,7 @@
return_type, tmpbuf,
error_code);
- if (n_read2 * spf1 != *n_read * spf2) {
+ if (n_read2 > 0 && n_read2 * spf1 != *n_read * spf2) {
*n_read = n_read2 * spf1 / spf2;
}
@@ -1265,7 +1265,7 @@
0, *n_read * spf2 / spf1,
return_type, tmpbuf,
error_code);
- if (n_read2 * spf1 < *n_read * spf2) {
+ if (n_read2 > 0 && n_read2 * spf1 < *n_read * spf2) {
*n_read = n_read2 * spf1 / spf2;
}
recurse_level--;
More information about the Kst
mailing list