fix ctrl macro for ANSI C
[unix-history] / usr / src / usr.bin / window / wwgets.c
index ab1a925..0a55de7 100644 (file)
@@ -1,7 +1,13 @@
 #ifndef lint
 #ifndef lint
-static char *sccsid = "@(#)wwgets.c    3.7 84/04/09";
+static char sccsid[] = "@(#)wwgets.c   3.10 %G%";
 #endif
 
 #endif
 
+/*
+ * Copyright (c) 1983 Regents of the University of California,
+ * All rights reserved.  Redistribution permitted subject to
+ * the terms of the Berkeley Software License Agreement.
+ */
+
 #include "ww.h"
 #include "char.h"
 
 #include "ww.h"
 #include "char.h"
 
@@ -35,7 +41,7 @@ register struct ww *w;
                        break;
                } else {
                        if (p >= buf + n - 1)
                        break;
                } else {
                        if (p >= buf + n - 1)
-                               wwputc(ctrl(g), w);
+                               wwputc(ctrl('g'), w);
                        else
                                wwputs(unctrl(*p++ = c), w);
                }
                        else
                                wwputs(unctrl(*p++ = c), w);
                }