diff options
author | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2017-04-05 12:36:52 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2017-04-05 14:53:33 +0200 |
commit | d61d2360c86d2aa0c2baac867bdf18d7f99811ae (patch) | |
tree | f22e28ebe4722ce63fc2cbcfb649bb11ce291d51 | |
parent | d7fb329ea0191136a79cd7164f3684a570b74269 (diff) | |
download | gnutls-d61d2360c86d2aa0c2baac867bdf18d7f99811ae.tar.gz |
tests: fixed possible buffer overflow to avoid spurious complaints
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
-rw-r--r-- | tests/utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/utils.c b/tests/utils.c index 512c3d40fc..073fe0e511 100644 --- a/tests/utils.c +++ b/tests/utils.c @@ -277,7 +277,7 @@ static void append(const char *file) p = calloc(1, sizeof(*p)); assert(p != NULL); - strcpy(p->file, file); + snprintf(p->file, sizeof(p->file), "%s", file); p->next = temp_files; temp_files = p; } |