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