Author: semor Date: Sat Aug 27 12:50:11 2011 New Revision: 14498 URL: http://svn.gna.org/viewcvs/relax?rev=14498&view=rev Log: Changed the memory allocation definition for the "curve_type" variable. It was being defined by an equation involving itself... Now, the definition assumes a maximum length of 20 characters. This will be enough for all possibilities, e.g. "exp_2param_neg" has 14 characters, and "exp_3param_inv_neg" has 18... Maybe this will again change later. Modified: branches/inversion-recovery/maths_fns/relax_fit.c Modified: branches/inversion-recovery/maths_fns/relax_fit.c URL: http://svn.gna.org/viewcvs/relax/branches/inversion-recovery/maths_fns/relax_fit.c?rev=14498&r1=14497&r2=14498&view=diff ============================================================================== --- branches/inversion-recovery/maths_fns/relax_fit.c (original) +++ branches/inversion-recovery/maths_fns/relax_fit.c Sat Aug 27 12:50:11 2011 @@ -50,7 +50,7 @@ return NULL; /* Dynamic C arrays */ - curve_type = (char *) malloc(sizeof(char)*PySequence_Fast_GET_SIZE(curve_type)); + curve_type = (char *) malloc(sizeof(char)*20); params = (double *) malloc(sizeof(double)*num_params); values = (double *) malloc(sizeof(double)*num_times); sd = (double *) malloc(sizeof(double)*num_times);