- Timestamp:
- 2010-05-19T19:46:43Z (15 years ago)
- Branches:
- master
- Children:
- 907afe1
- Parents:
- 2334048
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lib/misc.c
r2334048 r0b3ffb1 154 154 { 155 155 char *start = in; 156 char *out = g_malloc( strlen( in ) + 1 );156 char out[strlen(in)+1]; 157 157 char *s = out, *cs; 158 158 int i, matched; 159 159 160 memset( out, 0, s trlen( in ) + 1);160 memset( out, 0, sizeof( out ) ); 161 161 162 162 while( *in ) … … 220 220 221 221 strcpy( start, out ); 222 g_free( out );223 222 } 224 223
Note: See TracChangeset
for help on using the changeset viewer.