Replace most strdup with gmx_strdup
[alexxy/gromacs.git] / src / gromacs / gmxana / gmx_trjconv.c
index dcb57c94f1b62d98cb351ee44fc4a88891e09247..d37df65a535e4cb9b8e286f73bbed4fd4cecaacd 100644 (file)
@@ -1043,7 +1043,7 @@ int gmx_trjconv(int argc, char *argv[])
             {
                 gmx_fatal(FARGS, "Output file name '%s' does not contain a '.'", out_file);
             }
-            outf_base = strdup(out_file);
+            outf_base = gmx_strdup(out_file);
             outf_base[outf_ext - out_file] = '\0';
         }