Replace most strdup with gmx_strdup
[alexxy/gromacs.git] / src / gromacs / gmxana / gmx_do_dssp.c
index d5642b1b7ebc411f4316b4b7182277061efb00f3..74fd34c1c10aeed1b770016c0b7d451f315fefb3 100644 (file)
@@ -212,7 +212,7 @@ static void check_oo(t_atoms *atoms)
 
     int   i;
 
-    OOO = strdup("O");
+    OOO = gmx_strdup("O");
 
     for (i = 0; (i < atoms->nr); i++)
     {
@@ -352,7 +352,7 @@ void analyse_ss(const char *outfile, t_matrix *mat, const char *ss_string,
     leg[0] = "Structure";
     for (s = 0; s < (size_t)mat->nmap; s++)
     {
-        leg[s+1] = strdup(map[s].desc);
+        leg[s+1] = gmx_strdup(map[s].desc);
     }
 
     fp = xvgropen(outfile, "Secondary Structure",