[parted-devel] Use xmalloc and xrealloc, rather than unchecked malloc and realloc.
Otavio Salvador
otavio at debian.org
Fri May 25 17:37:13 UTC 2007
Jim Meyering <jim at meyering.net> writes:
> Seeing that unchecked "malloc", I figured there must be others.
> Here are some:
>
> Use xmalloc and xrealloc, rather than unchecked malloc and realloc.
> * parted/table.c: Use gnulib's xmalloc and realloc.
> Remove anachronistic casts of malloc/realloc return value.
> Change "sizeof(type)" to safer "sizeof(*var)" (one of the former
> was wrong, but in a harmless way).
Ack.
--
O T A V I O S A L V A D O R
---------------------------------------------
E-mail: otavio at debian.org UIN: 5906116
GNU/Linux User: 239058 GPG ID: 49A5F855
Home Page: http://otavio.ossystems.com.br
---------------------------------------------
"Microsoft sells you Windows ... Linux gives
you the whole house."
More information about the parted-devel
mailing list