ncdirect_putstr() is allowed to return 0

This commit is contained in:
nick black 2021-11-04 08:39:06 -04:00 committed by nick black
parent e9470ac4a9
commit 7b48c8b3d3

View File

@ -1355,7 +1355,7 @@ int ncdirect_vline_interp(ncdirect* n, const char* egc, unsigned len,
if(!bgdef){
ncchannels_set_bg_rgb8(&channels, br1, bg1, bb1);
}
if(ncdirect_putstr(n, channels, egc) <= 0){
if(ncdirect_putstr(n, channels, egc) == EOF){
return -1;
}
if(len - ret > 1){