X-Git-Url: https://git.subgeniuskitty.com/unix-history/.git/blobdiff_plain/6ffc418893f9ff8e4ef38f440f0d3f3c8d7b94fc..4c1c1e836e609ce4e0dea7c2982cf86b26a8806d:/usr/src/usr.bin/window/wwwrite.c diff --git a/usr/src/usr.bin/window/wwwrite.c b/usr/src/usr.bin/window/wwwrite.c index 80465dc515..16d1400f85 100644 --- a/usr/src/usr.bin/window/wwwrite.c +++ b/usr/src/usr.bin/window/wwwrite.c @@ -1,5 +1,5 @@ #ifndef lint -static char *sccsid = "@(#)wwwrite.c 3.14 83/12/02"; +static char *sccsid = "@(#)wwwrite.c 3.15 83/12/06"; #endif #include "ww.h" @@ -185,11 +185,13 @@ int n; } break; case 2: - w->ww_cur.r = w->ww_w.t + (*p++ - ' ') % w->ww_w.nr; + w->ww_cur.r = w->ww_w.t + + (unsigned)(*p++ - ' ') % w->ww_w.nr; w->ww_wstate = 3; break; case 3: - w->ww_cur.c = w->ww_w.l + (*p++ - ' ') % w->ww_w.nc; + w->ww_cur.c = w->ww_w.l + + (unsigned)(*p++ - ' ') % w->ww_w.nc; w->ww_wstate = 0; break; }