FdsAndSubprocs test: use ncplane_putnstr(s) #778

This commit is contained in:
nick black 2020-07-09 03:27:41 -04:00
parent ea183c0d66
commit 3457ffb59f
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

View File

@ -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;
}