[Tux4kids-commits] r896 - tuxmath/trunk/src

tholy-guest at alioth.debian.org tholy-guest at alioth.debian.org
Wed Feb 18 01:40:11 UTC 2009


Author: tholy-guest
Date: 2009-02-18 01:40:11 +0000 (Wed, 18 Feb 2009)
New Revision: 896

Removed:
   tuxmath/trunk/src/svn-commit.tmp
Modified:
   tuxmath/trunk/src/linewrap.c
Log:
Add sizeof(char) to a malloc---maybe fix amd64 crash on exit???


Modified: tuxmath/trunk/src/linewrap.c
===================================================================
--- tuxmath/trunk/src/linewrap.c	2009-02-17 14:46:38 UTC (rev 895)
+++ tuxmath/trunk/src/linewrap.c	2009-02-18 01:40:11 UTC (rev 896)
@@ -67,7 +67,7 @@
 int linewrap(const char *input,char *str_list[],int width,int max_lines,int max_width)
 {
   int length = strlen (input);
-  char *breaks = malloc (length);
+  char *breaks = malloc (length*sizeof(char));
   int i;
   int listIndex;
   int strIndex;

Deleted: tuxmath/trunk/src/svn-commit.tmp
===================================================================
--- tuxmath/trunk/src/svn-commit.tmp	2009-02-17 14:46:38 UTC (rev 895)
+++ tuxmath/trunk/src/svn-commit.tmp	2009-02-18 01:40:11 UTC (rev 896)
@@ -1,36 +0,0 @@
-updated source files
-
---This line, and those below, will be ignored--
-
-A    Makefile.in
-M    mathcards.c
-D    localcharset.h
-D    cjk.h
-M    campaign.c
-D    unitypes.h
-M    loaders.h
-D    uniwidth.h
-D    u16-mbtouc-aux.c
-D    u16-mbtouc.c
-M    SDL_extras.c
-AM   exercise_mathcards
-D    u16-mbtouc-unsafe-aux.c
-D    width.c
-M    titlescreen.c
-D    u16-mbtouc-unsafe.c
-M    lessons.c
-D    linebreak.c
-D    u8-mbtouc-unsafe-aux.c
-D    lbrkprop.h
-D    linebreak.h
-D    u8-mbtouc-unsafe.c
-D    streq.h
-D    xsize.h
-D    u8-mbtouc-aux.c
-D    u8-uctomb-aux.c
-M    linewrap.c
-D    u8-mbtouc.c
-D    u8-uctomb.c
-M    linewrap.h
-M    Makefile.am
-D    unistr.h




More information about the Tux4kids-commits mailing list