OSDN Git Service

Use xmalloc and xrealloc, rather than unchecked malloc and realloc.
authorJim Meyering <jim@meyering.net>
Fri, 25 May 2007 17:40:56 +0000 (19:40 +0200)
committerJim Meyering <jim@meyering.net>
Fri, 25 May 2007 17:40:56 +0000 (19:40 +0200)
commit95359ad0c816ea476adda38b81e72c94257c531d
tree2f808479f69a22d1dbf507c2ac4a99cd76646aeb
parent0a5faac764f0a23ebcd3abbd5b65395253a1a24a
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).
parted/table.c