-/* Copyright (c) 2012-2018. The SimGrid Team.
+/* Copyright (c) 2012-2019. The SimGrid Team.
* All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
if (name) {
len = strlen (name);
g->name = (char *) xbt_malloc ((len + 1) * sizeof (char));
- strncpy (g->name, name, len + 1);
+ memcpy(g->name, name, len + 1);
} else
g->name = 0;
g->Anti = 0;