gnumeric r16411 - branches/gnumeric-1-8/plugins/sylk
- From: mortenw svn gnome org
- To: svn-commits-list gnome org
- Subject: gnumeric r16411 - branches/gnumeric-1-8/plugins/sylk
- Date: Tue, 26 Feb 2008 15:51:29 +0000 (GMT)
Author: mortenw
Date: Tue Feb 26 15:51:29 2008
New Revision: 16411
URL: http://svn.gnome.org/viewvc/gnumeric?rev=16411&view=rev
Log:
Sanity check.
Modified:
branches/gnumeric-1-8/plugins/sylk/sylk.c
Modified: branches/gnumeric-1-8/plugins/sylk/sylk.c
==============================================================================
--- branches/gnumeric-1-8/plugins/sylk/sylk.c (original)
+++ branches/gnumeric-1-8/plugins/sylk/sylk.c Tue Feb 26 15:51:29 2008
@@ -203,7 +203,7 @@
str++;
len = strlen (str);
- if (str[len-1] == '\"')
+ if (len > 0 && str[len - 1] == '\"')
len--;
return value_new_string_nocopy (g_strndup (str, len));
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]