summaryrefslogtreecommitdiff
path: root/misc/fep/patches/patch-ab
blob: f1c80b79e92299d6f24ed4189e2acb9c912844e1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
$NetBSD: patch-ab,v 1.2 2003/11/07 16:35:51 christos Exp $

--- fep_alias.c.orig	1988-11-13 01:50:58.000000000 -0500
+++ fep_alias.c	2003-11-07 11:23:03.000000000 -0500
@@ -3,7 +3,7 @@
 #ifndef lint
 static char rcsid[]=
 "$Header: /cvsroot/pkgsrc/misc/fep/patches/patch-ab,v 1.2 2003/11/07 16:35:51 christos Exp $ (SRA)";
-#endif lint
+#endif /* lint */
 
 #include <stdio.h>
 #include <ctype.h>
@@ -18,7 +18,7 @@
 
 ALIAS	alias_top = {"top", "top", (ALIAS *)0};
 ALIAS	*alias_list = &alias_top;
-CHAR	aliased_line[MAXCOMLEN+1];
+CHAR	aliased_line[MAXCMDLEN+1];
 
 /*
  * Functions
@@ -44,7 +44,7 @@
 
     while (isspace (*comline))
 	++comline;
-    if (*comline == NULL)
+    if (*comline == '\0')
 	return ((CHAR *)0);
 
     argc = mkargv (comline, argv, MAXARGS);