Changeset 0b3ffb1 for lib


Ignore:
Timestamp:
2010-05-19T19:46:43Z (15 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
907afe1
Parents:
2334048
Message:

Setting the HTML flag on a connection has a nasty side effect of escaping
a lot of "special" characters, and these HTML entities are not counted as
one character. :-(

So just strip HTML of incoming stuff and don't do anything with what goes
out. It's not required.

The story may actually be more complicated this, let's find out.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/misc.c

    r2334048 r0b3ffb1  
    154154{
    155155        char *start = in;
    156         char *out = g_malloc( strlen( in ) + 1 );
     156        char out[strlen(in)+1];
    157157        char *s = out, *cs;
    158158        int i, matched;
    159159       
    160         memset( out, 0, strlen( in ) + 1 );
     160        memset( out, 0, sizeof( out ) );
    161161       
    162162        while( *in )
     
    220220       
    221221        strcpy( start, out );
    222         g_free( out );
    223222}
    224223
Note: See TracChangeset for help on using the changeset viewer.