add\0 after CVT_WRITE
This commit is contained in:
parent
030539f33b
commit
c351637eeb
@ -400,6 +400,7 @@ X_API int PL_get_chars(term_t l, char **sp, unsigned flags)
|
|||||||
putc_cur_lim = tmp+(BUF_SIZE-1);
|
putc_cur_lim = tmp+(BUF_SIZE-1);
|
||||||
}
|
}
|
||||||
Yap_plwrite(t, do_yap_putc, write_flags, 1200);
|
Yap_plwrite(t, do_yap_putc, write_flags, 1200);
|
||||||
|
*putc_cur_buf = '\0';
|
||||||
/* may have changed due to overflows */
|
/* may have changed due to overflows */
|
||||||
*sp = putc_cur_buf;
|
*sp = putc_cur_buf;
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
Reference in New Issue
Block a user