/[mailutils]/mailutils/mailbox/memory_stream.c
ViewVC logotype

Diff of /mailutils/mailbox/memory_stream.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.6 by sroberts, Sun Dec 16 05:34:16 2001 UTC revision 1.7 by gray, Thu Feb 7 08:09:19 2002 UTC
# Line 129  _memory_truncate (stream_t stream, off_t Line 129  _memory_truncate (stream_t stream, off_t
129          free (mfs->ptr);          free (mfs->ptr);
130        mfs->ptr = NULL;        mfs->ptr = NULL;
131      }      }
132    else    else if (len != mfs->size)
133      {      {
134        char *tmp = realloc (mfs, len);        char *tmp = realloc (mfs->ptr, len);
135        if (tmp == NULL)        if (tmp == NULL)
136          return ENOMEM;          return ENOMEM;
137        mfs->ptr = tmp;        mfs->ptr = tmp;

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26