New module 'vasprintf-posix'.
[gnulib.git] / lib / fatal-signal.c
index 2b93b60..e9c9d04 100644 (file)
@@ -206,8 +206,7 @@ at_fatal_signal (action_t action)
       size_t old_actions_allocated = actions_allocated;
       size_t new_actions_allocated = 2 * actions_allocated;
       actions_entry_t *new_actions =
-       (actions_entry_t *)
-       xmalloc (new_actions_allocated * sizeof (actions_entry_t));
+       XNMALLOC (new_actions_allocated, actions_entry_t);
       size_t k;
 
       /* Don't use memcpy() here, because memcpy takes non-volatile arguments