Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
John McEleney
/
mailutils
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit
1d31a280
...
1d31a280d7be7590c25f1ca7a74460097b3a7ebd
authored
2002-02-07 08:09:19 +0000
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
(_memory_truncate): Bugfix.
1 parent
86e0a310
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
mailbox/memory_stream.c
mailbox/memory_stream.c
View file @
1d31a28
...
...
@@ -129,9 +129,9 @@ _memory_truncate (stream_t stream, off_t len)
free
(
mfs
->
ptr
);
mfs
->
ptr
=
NULL
;
}
else
else
if
(
len
!=
mfs
->
size
)
{
char
*
tmp
=
realloc
(
mfs
,
len
);
char
*
tmp
=
realloc
(
mfs
->
ptr
,
len
);
if
(
tmp
==
NULL
)
return
ENOMEM
;
mfs
->
ptr
=
tmp
;
...
...
Please
register
or
sign in
to post a comment