diff options
Diffstat (limited to 'posix/tst-truncate.c')
-rw-r--r-- | posix/tst-truncate.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/posix/tst-truncate.c b/posix/tst-truncate.c index 8f5957f417..99bddb335f 100644 --- a/posix/tst-truncate.c +++ b/posix/tst-truncate.c @@ -59,7 +59,7 @@ do_prepare (int argc, char *argv[]) #define FNAME2(s) "/" STRINGIFY(s) "XXXXXX" name_len = strlen (test_dir); - name = malloc (name_len + sizeof (FNAME)); + name = xmalloc (name_len + sizeof (FNAME)); mempcpy (mempcpy (name, test_dir, name_len), FNAME, sizeof (FNAME)); add_temp_file (name); |