null indirection
authorKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Tue, 9 Apr 1991 02:35:26 +0000 (18:35 -0800)
committerKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Tue, 9 Apr 1991 02:35:26 +0000 (18:35 -0800)
SCCS-vsn: bin/ps/keyword.c 5.5

usr/src/bin/ps/keyword.c

index 4d27658..81ba4aa 100644 (file)
@@ -6,7 +6,7 @@
  */
 
 #ifndef lint
  */
 
 #ifndef lint
-static char sccsid[] = "@(#)keyword.c  5.4 (Berkeley) %G%";
+static char sccsid[] = "@(#)keyword.c  5.5 (Berkeley) %G%";
 #endif /* not lint */
 
 #include <sys/param.h>
 #endif /* not lint */
 
 #include <sys/param.h>
@@ -248,9 +248,9 @@ showkey()
                if (termwidth && (i += len + 1) > termwidth) {
                        i = len;
                        sep = "\n";
                if (termwidth && (i += len + 1) > termwidth) {
                        i = len;
                        sep = "\n";
-               }
+               } else
+                       sep = " ";
                (void) printf("%s%s", sep, p);
                (void) printf("%s%s", sep, p);
-               sep = " ";
        }
        (void) printf("\n");
 }
        }
        (void) printf("\n");
 }