gnumeric r16394 - in trunk: . plugins/applix
- From: mortenw svn gnome org
- To: svn-commits-list gnome org
- Subject: gnumeric r16394 - in trunk: . plugins/applix
- Date: Thu, 21 Feb 2008 02:18:05 +0000 (GMT)
Author: mortenw
Date: Thu Feb 21 02:18:04 2008
New Revision: 16394
URL: http://svn.gnome.org/viewvc/gnumeric?rev=16394&view=rev
Log:
2008-02-20 Morten Welinder <terra gnome org>
* applix-read.c (applix_get_line): If we hit eof with nothing
read, return NULL. Callers appear to expect that. Fixes #517778.
Modified:
trunk/NEWS
trunk/plugins/applix/ChangeLog
trunk/plugins/applix/applix-read.c
Modified: trunk/NEWS
==============================================================================
--- trunk/NEWS (original)
+++ trunk/NEWS Thu Feb 21 02:18:04 2008
@@ -35,6 +35,7 @@
* Fix corrupted-qpro-bugs. [#517144] [#517376] [#517591]
* Make <control>KP_Subtract work as <control>minus. [#516358]
* Make <control>KP_Add work as <control>plus.
+ * Fix corrupted-applix-bug. [#517778]
--------------------------------------------------------------------------
Gnumeric 1.8.0
Modified: trunk/plugins/applix/applix-read.c
==============================================================================
--- trunk/plugins/applix/applix-read.c (original)
+++ trunk/plugins/applix/applix-read.c Thu Feb 21 02:18:04 2008
@@ -351,6 +351,9 @@
break;
}
+ if (offset == 0 && ptr == NULL)
+ return NULL;
+
if (state->buffer != NULL)
state->buffer [offset] = '\0';
return state->buffer;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]