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
84a13581
...
84a1358194918ae1f4fa92ed9912395ea206b6d5
authored
2005-12-05 09:32:06 +0000
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
(util_do_command): Fix memory overrun
1 parent
b690dcf3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
mail/util.c
mail/util.c
View file @
84a1358
...
...
@@ -120,7 +120,8 @@ util_do_command (const char *c, ...)
{
argc
++
;
argv
=
xrealloc
(
argv
,
(
argc
+
1
)
*
sizeof
argv
[
0
]);
memmove
(
argv
+
2
,
argv
+
1
,
argc
*
sizeof
argv
[
0
]);
if
(
argc
>
2
)
memmove
(
argv
+
2
,
argv
+
1
,
(
argc
-
2
)
*
sizeof
argv
[
0
]);
argv
[
1
]
=
xstrdup
(
p
);
*
p
=
0
;
}
...
...
Please
register
or
sign in
to post a comment