Unified · Split
| @@ -125,7 +125,7 @@ screenputc(char *buf) · 124 unmodified lines | |||
| 125 | static int *xp; | 125 | static int *xp; |
| 126 | static int xbuf[256]; | 126 | static int xbuf[256]; |
| 127 | 127 | ||
| 128 | if(xp < xbuf || xp >= &xbuf[sizeof(xbuf)]) | 128 | if(xp < xbuf || xp >= &xbuf[nelem(xbuf)]) |
| 129 | xp = xbuf; | 129 | xp = xbuf; |
| 130 | 130 | ||
| 131 | switch(buf[0]) { | 131 | switch(buf[0]) { |