[tuxracer-devel] Problem with string_util.c
Status: Beta
Brought to you by:
jfpatry
From: Sten E. <ste...@ud...> - 2000-03-06 12:34:42
|
With "tuxracer-0.11.tar.gz" I get a Segmentation fault. Below is a patch that fixes this -- cut here -- *** string_util.c Mon Mar 6 10:10:36 2000 --- string_util.c.org Fri Feb 25 02:56:59 2000 *************** *** 34,45 **** ! if ((s1 != NULL) && (s2 != NULL)) { ! s1c = string_copy( s1 ); ! s2c = string_copy( s2 ); ! string_to_lower( s1c ); ! string_to_lower( s2c ); ! retval = strcmp( s1c, s2c ); ! free( s1c ); ! free( s2c ); ! return retval; ! } else { ! return (s1 == s2); ! } --- 34,41 ---- ! s1c = string_copy( s1 ); ! s2c = string_copy( s2 ); ! string_to_lower( s1c ); ! string_to_lower( s2c ); ! retval = strcmp( s1c, s2c ); ! free( s1c ); ! free( s2c ); ! return retval; -- cut here -- ----------------------------------------------------------------- Sten Eriksson ! E-mail: ste...@ud... UDAC AB / Datorhotellet ! Tel, work: +46 18 471 78 20 Box 174 ! Tel, mob: +46 70 542 47 03 SE-751 04 Uppsala ! Tel, fax: +46 18 51 66 00 SWEDEN ! ----------------------------------------------------------------- |