Replace most strdup with gmx_strdup
[alexxy/gromacs.git] / src / gromacs / fileio / strdb.c
index 3ceca94be87270483ffffbefada9c4b2406c3e0f..b8811a5fb41638e7730a78060556408da4b0c16b 100644 (file)
@@ -143,7 +143,7 @@ int get_strings(const char *db, char ***strings)
 #ifdef DEBUG
         fprintf(stderr, "Have read: %s\n", buf);
 #endif
-        ptr[i] = strdup(buf);
+        ptr[i] = gmx_strdup(buf);
     }
     gmx_ffclose(in);
 
@@ -224,7 +224,7 @@ int get_file(const char *db, char ***strings)
             maxi += 50;
             srenew(ptr, maxi);
         }
-        ptr[i] = strdup(buf);
+        ptr[i] = gmx_strdup(buf);
         i++;
     }
     nstr = i;