]> Dogcows Code - chaz/tar/blobdiff - src/tar.c
Replace strdup with xstrdup
[chaz/tar] / src / tar.c
index 1536eed581ce21545d0b7b23c55eb5a7c6d6d8cb..1b0bf8fe071fb055f2663ca4b9361412631617f2 100644 (file)
--- a/src/tar.c
+++ b/src/tar.c
@@ -1401,7 +1401,7 @@ parse_opt (int key, char *arg, struct argp_state *state)
              xrealloc (archive_name_array,
                        sizeof (const char *) * allocated_archive_names);
          }
-       archive_name_array[archive_names++] = strdup (buf);
+       archive_name_array[archive_names++] = xstrdup (buf);
       }
       break;
 
This page took 0.024562 seconds and 4 git commands to generate.