Skip to content
Snippets Groups Projects
Commit 3a0ab7a3 authored by Tristan Matthews's avatar Tristan Matthews
Browse files

* #21631: gnome: avoid buffer overflow

parent fbfa9dd6
Branches
Tags
No related merge requests found
...@@ -137,7 +137,7 @@ rest_account get_rest_account(char *host,char *email) ...@@ -137,7 +137,7 @@ rest_account get_rest_account(char *host,char *email)
ra.success = 1; ra.success = 1;
} else { } else {
ra.success = 0; ra.success = 0;
strcpy(ra.reason, ret); strncpy(ra.reason, ret, sizeof(ra.reason));
} }
puts(ret); puts(ret);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment