Replace most strdup with gmx_strdup
[alexxy/gromacs.git] / src / gromacs / gmxana / nrama.c
index db6e0d75101386e2c70b5c44fe3a03a8d7988802..c977418324fe0e09bba9fb99b7a78125529e4b35 100644 (file)
@@ -142,7 +142,7 @@ static void add_xr(t_xrama *xr, int ff[5], t_atoms *atoms)
     xr->pp[xr->npp].bShow = FALSE;
     sprintf(buf, "%s-%d", *atoms->resinfo[atoms->atom[ff[1]].resind].name,
             atoms->resinfo[atoms->atom[ff[1]].resind].nr);
-    xr->pp[xr->npp].label = strdup(buf);
+    xr->pp[xr->npp].label = gmx_strdup(buf);
     xr->npp++;
 }