biod.pnpi.spb.ru
/
alexxy
/
gromacs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Replace most strdup with gmx_strdup
[alexxy/gromacs.git]
/
src
/
gromacs
/
fileio
/
strdb.c
diff --git
a/src/gromacs/fileio/strdb.c
b/src/gromacs/fileio/strdb.c
index 3ceca94be87270483ffffbefada9c4b2406c3e0f..b8811a5fb41638e7730a78060556408da4b0c16b 100644
(file)
--- a/
src/gromacs/fileio/strdb.c
+++ b/
src/gromacs/fileio/strdb.c
@@
-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;