X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/bb06f72a8720cfdbd5534a578797a1c4dfa9eb32..7e049faf8cdd41c59c2e97f8c46fd6052b23b8a3:/src/surf/workstation_ptask_L07.c diff --git a/src/surf/workstation_ptask_L07.c b/src/surf/workstation_ptask_L07.c index b78601f011..730476ecd3 100644 --- a/src/surf/workstation_ptask_L07.c +++ b/src/surf/workstation_ptask_L07.c @@ -910,7 +910,7 @@ static void add_route(void) int link_list_capacity = 0; link_L07_t *link_list = NULL; xbt_dict_cursor_t cursor = NULL; - char *key,*data; + char *key,*data, *end; const char *sep = "#"; xbt_dynar_t links, keys; @@ -921,8 +921,8 @@ static void add_route(void) links = (xbt_dynar_t)data; keys = xbt_str_split_str(key, sep); - src_id = atoi(xbt_dynar_get_as(keys, 0, char*)); - dst_id = atoi(xbt_dynar_get_as(keys, 1, char*)); + src_id = strtol(xbt_dynar_get_as(keys, 0, char*), &end, 16); + dst_id = strtol(xbt_dynar_get_as(keys, 1, char*), &end, 16); link_list_capacity = xbt_dynar_length(links); link_list = xbt_new(link_L07_t, link_list_capacity);