Changeset 34509d5 for message.c


Ignore:
Timestamp:
Dec 23, 2007, 7:48:01 PM (17 years ago)
Author:
Alejandro R. Sedeño <asedeno@mit.edu>
Branches:
master, barnowl_perlaim, debian, release-1.10, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
Children:
93ee554
Parents:
9a6cc40
Message:
GLib/Unicode branch - adding glib dependency.

Linking BarnOwl to GLib. 

Cleaning up some malloc/realloc/strdup/free code, moving to owl_*
functions for each.

Changing to GLib memory allocation functions.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • message.c

    r9c590d4 r34509d5  
    487487{
    488488  if(m->zwriteline) owl_free(m->zwriteline);
    489   m->zwriteline=strdup(line);
     489  m->zwriteline=owl_strdup(line);
    490490}
    491491
     
    882882  }
    883883
    884   m->zwriteline=strdup("");
     884  m->zwriteline=owl_strdup("");
    885885
    886886  /* save the hostname */
     
    964964  }
    965965
    966   m->zwriteline=strdup("");
     966  m->zwriteline=owl_strdup("");
    967967
    968968  owl_message_set_body(m, "<uninitialized>");
Note: See TracChangeset for help on using the changeset viewer.