File dante-1.4.1-gcc5-fixes.patch of Package dante

diff --git a/lib/Rcompat.c b/lib/Rcompat.c
index f03e125..fc79abe 100755
--- a/lib/Rcompat.c
+++ b/lib/Rcompat.c
@@ -44,6 +44,8 @@
 
 #include "common.h"
 
+#include<stdio.h>
+
 static const char rcsid[] =
 "$Id: Rcompat.c,v 1.89.4.2.6.2 2020/11/11 16:11:51 karls Exp $";
 
@@ -513,7 +515,7 @@ Rgets(buf)
    slog(LOG_DEBUG, "%s: fd %d", function, d);
 
    if (!gssapi_isencrypted(d))
-      return gets(buf);
+      return fgets(buf, INT_MAX, stdin);
 
    i = 0;
    while (Rread(d, buf + i, 1) == 1 && buf[i] != '\n')
openSUSE Build Service is sponsored by