summaryrefslogtreecommitdiff
path: root/security/libparanoia/files/patch-ab
blob: 43ff3e9a36ef452a036cb45ce551c8c91532bd9d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--- gets.c.orig	Wed Dec 30 17:05:40 1998
+++ gets.c	Fri Mar 22 23:29:05 2002
@@ -68,8 +68,10 @@
 	}
 	for (s = buf; (c = getchar()) != '\n';)
 		if (c == EOF)
-			if (s == buf)
+			if (s == buf) {
+				exit_violation();
 				return (NULL);
+			}
 			else
 				break;
 		else