mirror of
https://github.com/dankamongmen/notcurses.git
synced 2024-11-02 09:40:15 +00:00
FdsAndSubprocs test: use ncplane_putnstr(s) #778
This commit is contained in:
parent
ea183c0d66
commit
3457ffb59f
@ -14,7 +14,7 @@ bool inline_cancelled = false;
|
||||
auto testfdcb(struct ncfdplane* ncfd, const void* buf, size_t s, void* curry) -> int {
|
||||
struct ncplane* n = ncfdplane_plane(ncfd);
|
||||
lock.lock();
|
||||
if(ncplane_putstr(n, static_cast<const char*>(buf)) <= 0){
|
||||
if(ncplane_putnstr(n, s, static_cast<const char*>(buf)) <= 0){
|
||||
lock.unlock();
|
||||
return -1;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user