Changes in lib/misc.c [a161d33:613cc55]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lib/misc.c
ra161d33 r613cc55 112 112 { "gt", ">" }, 113 113 { "amp", "&" }, 114 { "apos", "'" },115 114 { "quot", "\"" }, 116 115 { "aacute", "á" }, … … 144 143 char *s = out, *cs; 145 144 int i, matched; 146 int taglen;147 145 148 146 memset( out, 0, strlen( in ) + 1 ); … … 161 159 in ++; 162 160 163 taglen = in-cs-1; /* not <0 because the above loop runs at least once */164 161 if( *in ) 165 162 { 166 if( g_strncasecmp( cs+1, "b", taglen) == 0 ) 167 *(s++) = '\x02'; 168 else if( g_strncasecmp( cs+1, "/b", taglen) == 0 ) 169 *(s++) = '\x02'; 170 else if( g_strncasecmp( cs+1, "i", taglen) == 0 ) 171 *(s++) = '\x1f'; 172 else if( g_strncasecmp( cs+1, "/i", taglen) == 0 ) 173 *(s++) = '\x1f'; 174 else if( g_strncasecmp( cs+1, "br", 2) == 0 ) 163 if( g_strncasecmp( cs+1, "br", 2) == 0 ) 175 164 *(s++) = '\n'; 176 165 in ++;
Note: See TracChangeset
for help on using the changeset viewer.