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

diff -Nurp dante-1.4.4-orig/lib/Rcompat.c dante-1.4.4/lib/Rcompat.c
--- dante-1.4.4-orig/lib/Rcompat.c	2024-12-18 13:25:09.844424585 +0100
+++ dante-1.4.4/lib/Rcompat.c	2024-12-18 13:29:12.823231714 +0100
@@ -44,6 +44,8 @@
 
 #include "common.h"
 
+#include<stdio.h>
+
 static const char rcsid[] =
 "$Id: Rcompat.c,v 1.89.4.2.6.2.4.1 2024/11/21 10:22:42 michaels 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