Replace most strdup with gmx_strdup
[alexxy/gromacs.git] / src / gromacs / gmxpreprocess / x2top.c
index 085e4c84efc8b6ae890446b23aa4ab0c59da3543..d9e3a69d19d7cf90005430ad4bede1824be0fdaf 100644 (file)
@@ -538,7 +538,7 @@ int gmx_x2top(int argc, char *argv[])
     bOPLS = (strcmp(forcefield, "oplsaa") == 0);
 
 
-    mymol.name = strdup(molnm);
+    mymol.name = gmx_strdup(molnm);
     mymol.nr   = 1;
 
     /* Init parameter lists */