-/* $Id$ */
-
/* gras_stub_generator - creates the main() to use a GRAS program */
/* Copyright (c) 2003-2007 Martin Quinson, Arnaud Legrand, Malek Cherier. */
GetCurrentDirectory(MAX_PATH, buffer);
- borland_project.src_dir = xbt_new0(char, strlen(buffer) + 1);
-
- strcpy(borland_project.src_dir, buffer);
+ borland_project.src_dir = xbt_strdup(buffer);
borland_project.name =
xbt_new0(char, strlen(name) + strlen("simulator") + 2);
GetCurrentDirectory(MAX_PATH, buffer);
- borland_project.src_dir = xbt_new0(char, strlen(buffer) + 1);
-
- strcpy(borland_project.src_dir, buffer);
+ borland_project.src_dir = xbt_strdup(buffer);
borland_project.bin_dir =
xbt_new0(char, strlen(buffer) + strlen("\\bin") + 1);
GetEnvironmentVariable("LIB_SIMGRID_PATH", dsp.lib_dir, MAX_PATH);
GetCurrentDirectory(MAX_PATH, buffer);
- dsp.src_dir = xbt_new0(char, strlen(buffer) + 1);
- strcpy(dsp.src_dir, buffer);
+ dsp.src_dir = xbt_strdup(buffer);
dsp.name = xbt_new0(char, strlen(name) + strlen("simulator") + 2);
sprintf(dsp.name, "%s_simulator", name);
GetCurrentDirectory(MAX_PATH, buffer);
- dsp.src_dir = xbt_new0(char, strlen(buffer) + 1);
-
- strcpy(dsp.src_dir, buffer);
+ dsp.src_dir = xbt_strdup(buffer);
xbt_dict_foreach(process_function_set, cursor, key, data) {