From 3a0ab7a358fea5ffcf6862850de270363f2e063c Mon Sep 17 00:00:00 2001
From: Tristan Matthews <le.businessman@gmail.com>
Date: Thu, 23 May 2013 23:41:29 -0400
Subject: [PATCH] * #21631: gnome: avoid buffer overflow

---
 gnome/src/config/reqaccount.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gnome/src/config/reqaccount.c b/gnome/src/config/reqaccount.c
index f9b98c6ef9..b6df7951fb 100644
--- a/gnome/src/config/reqaccount.c
+++ b/gnome/src/config/reqaccount.c
@@ -137,7 +137,7 @@ rest_account get_rest_account(char *host,char *email)
         ra.success = 1;
     } else {
         ra.success = 0;
-        strcpy(ra.reason, ret);
+        strncpy(ra.reason, ret, sizeof(ra.reason));
     }
 
     puts(ret);
-- 
GitLab