else
{
srenew(cppopts, ++ncppopts);
- cppopts[ncppopts-1] = strdup(buf);
+ cppopts[ncppopts-1] = gmx_strdup(buf);
}
sfree(buf);
ptr = rptr;
set_warning_line(wi, cpp_cur_file(&handle), cpp_cur_linenr(&handle));
- pline = strdup(line);
+ pline = gmx_strdup(line);
/* Strip trailing '\' from pline, if it exists */
sl = strlen(pline);
/* Since we depend on the '\' being present to continue to read, we copy line
* to a tmp string, strip the '\' from that string, and cat it to pline
*/
- tmp_line = strdup(line);
+ tmp_line = gmx_strdup(line);
sl = strlen(tmp_line);
if ((sl > 0) && (tmp_line[sl-1] == CONTINUE))
* without the brackets into dirstr, then
* skip spaces and tabs on either side of directive
*/
- dirstr = strdup((pline+1));
+ dirstr = gmx_strdup((pline+1));
if ((dummy2 = strchr (dirstr, CLOSEDIR)) != NULL)
{
(*dummy2) = 0;