- Timestamp:
- 2008-02-09T17:58:13Z (17 years ago)
- Branches:
- master
- Children:
- f55cfe9
- Parents:
- a13855a
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lib/misc.c
ra13855a r5a71d9c 143 143 char *s = out, *cs; 144 144 int i, matched; 145 int taglen; 145 146 146 147 memset( out, 0, strlen( in ) + 1 ); … … 159 160 in ++; 160 161 162 taglen = in-cs-1; /* not <0 because the above loop runs at least once */ 161 163 if( *in ) 162 164 { 163 if( g_strncasecmp( cs+1, "br", 2) == 0 ) 165 if( g_strncasecmp( cs+1, "b", taglen) == 0 ) 166 *(s++) = '\x02'; 167 else if( g_strncasecmp( cs+1, "/b", taglen) == 0 ) 168 *(s++) = '\x02'; 169 else if( g_strncasecmp( cs+1, "i", taglen) == 0 ) 170 *(s++) = '\x1f'; 171 else if( g_strncasecmp( cs+1, "/i", taglen) == 0 ) 172 *(s++) = '\x1f'; 173 else if( g_strncasecmp( cs+1, "br", 2) == 0 ) 164 174 *(s++) = '\n'; 165 175 in ++;
Note: See TracChangeset
for help on using the changeset viewer.