Changeset 6851


Ignore:
Timestamp:
Oct 6, 2008, 1:52:29 AM (13 years ago)
Author:
charles
Message:

(libT) #1318: transmission daemon eats all resources

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/bencode.c

    r6842 r6851  
    13111311                    UTF32        buf = 0;
    13121312                    UTF32 *      u32 = &buf;
    1313                     ConvertUTF8toUTF32( &tmp, end, &u32, &buf + 1, 0 );
    1314                     evbuffer_add_printf( data->out, "\\u%04x", buf );
    1315                     it = tmp - 1;
     1313                    ConversionResult result = ConvertUTF8toUTF32( &tmp, end, &u32, &buf + 1, 0 );
     1314                    if( ( result != conversionOK ) && ( tmp == it ) )
     1315                        ++it; /* it's beyond help; skip it */
     1316                    else {
     1317                        evbuffer_add_printf( data->out, "\\u%04x", buf );
     1318                        it = tmp - 1;
     1319                    }
    13161320                    /*fprintf( stderr, "[\\u%04x]\n", buf );*/
    13171321                }
Note: See TracChangeset for help on using the changeset viewer.