1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-15 03:14:23 +00:00
freebsd-ports/security/libparanoia/files/patch-ab
Maxim Sobolev e5f34fc2be In gets(), two return's exist, and both should be wrapped with exit_violation.
In current version, one is forgotten. Bump PORTREVISION.

PR:		41277
Submitted by:	Valentin Nechayev <netch@netch.kiev.ua>
2002-08-03 07:52:47 +00:00

15 lines
275 B
Plaintext

--- 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