Replace most strdup with gmx_strdup
[alexxy/gromacs.git] / src / gromacs / gmxana / nsfactor.c
index d53a162fa8b414d8555575bd5af8c696aebd2487..c8e70dd921cd2fc5ef11f8c2931ab7f605feef27 100644 (file)
@@ -115,7 +115,7 @@ gmx_neutron_atomic_structurefactors_t *gmx_neutronstructurefactors_init(const ch
         i = line_no;
         if (sscanf(line, "%s %d %d %lf", atomnm, &p, &n, &slength) == 4)
         {
-            gnsf->atomnm[i]  = strdup(atomnm);
+            gnsf->atomnm[i]  = gmx_strdup(atomnm);
             gnsf->n[i]       = n;
             gnsf->p[i]       = p;
             gnsf->slength[i] = slength;