Changeset 3759849 for lib


Ignore:
Timestamp:
2010-06-03T22:08:23Z (14 years ago)
Author:
Sven Moritz Hallberg <pesco@…>
Branches:
master
Children:
eb6df6a
Parents:
1dd3470 (diff), 3dc6d86 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

merge in bitlbee head

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/misc.c

    r1dd3470 r3759849  
    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        int taglen;
    160160       
    161         memset( out, 0, strlen( in ) + 1 );
     161        memset( out, 0, sizeof( out ) );
    162162       
    163163        while( *in )
     
    230230       
    231231        strcpy( start, out );
    232         g_free( out );
    233232}
    234233
Note: See TracChangeset for help on using the changeset viewer.