summaryrefslogtreecommitdiff
path: root/mail/faces/patches/patch-ak
blob: b357e058e8d5be9635608e9f3f8bb20946340276 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
$NetBSD: patch-ak,v 1.3 2000/07/08 12:47:07 tron Exp $

--- filters/ikon2icon.c.orig	Mon Apr 15 05:40:02 1991
+++ filters/ikon2icon.c	Sat Jul  8 14:25:27 2000
@@ -13,12 +13,17 @@
  *  either to the comments or the code of this program, but if reported
  *  to me, then an attempt will be made to fix them.
  */
+#include <sys/param.h>
 
 #include <stdio.h>
 
 #define  PATCHLEVEL  1
 
-#define  GETS        (void) gets     /* To make lint happy. */
+#if (defined(BSD) && BSD >= 199306)
+#define  GETS(s)	{ (void)fgets(s, sizeof(s), stdin); s[sizeof(s) - 1] = 0; }
+#else
+#define  GETS(s)        (void) gets(s)     /* To make lint happy. */
+#endif
 #define  PRINTF      (void) printf
 #define  SPRINTF     (void) sprintf
 #define  SSCANF      (void) sscanf