Browse Source

* src/backends/shared.c : snprintf() -> strlcpy()

master
Alex 'AdUser' Z 8 years ago
parent
commit
7a5f0feb66
  1. 2
      src/backends/shared.c

2
src/backends/shared.c

@ -29,7 +29,7 @@ usage_inc(const char *id) {
}
/* not found or list is empty */
e = calloc(1, sizeof(cfg_id_t));
snprintf(e->name, sizeof(e->name), "%s", id);
strlcpy(e->name, id, sizeof(e->name));
e->count++;
e->next = ids_usage;
ids_usage = e;

Loading…
Cancel
Save