Commit 5ddc4d73 authored by Arturo Espinosa's avatar Arturo Espinosa
Browse files

Small touch ups

parent dc2a42f2
SUBDIRS = intl po macros plugins src doc corba-test
SUBDIRS = intl po macros plugins src doc
EXTRA_DIST = \
gnumeric.desktop README HACKING gnumeric.spec.in \
......
AC_INIT(src/gnumeric.h)
AM_CONFIG_HEADER(config.h)
AM_INIT_AUTOMAKE(gnumeric,0.27)
AM_INIT_AUTOMAKE(gnumeric,0.28)
AM_MAINTAINER_MODE
AM_ACLOCAL_INCLUDE(macros)
......
......@@ -12,6 +12,7 @@ libexcel_a_SOURCES = \
boot.c \
boot.h \
excel.h \
formula-types.h \
ms-excel-biff.h \
ms-biff.c \
ms-biff.h \
......
......@@ -176,14 +176,14 @@ int csv_load_table(FILE *f, struct csv_table *ptr)
width = count_fields(linebuf);
if(width < 1)
width = 1;
ptr->row[length].data=(char **)malloc(width*sizeof(char *));
ptr->row[length].data=(char **)malloc((width+1)*sizeof(char *));
ptr->row[length].width = width;
if(ptr->row[length].data==NULL)
{
csv_error="out of memory";
return -1;
}
memset(ptr->row[length].data, 0, width*sizeof(char *));
memset(ptr->row[length].data, 0, (width+1)*sizeof(char *));
if(smash_fields(linebuf, ptr->row[length].data, width)==-1)
return -1;
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment