diff --git a/src/port.c b/src/port.c index b943a066..d9e1cc19 100644 --- a/src/port.c +++ b/src/port.c @@ -43,6 +43,7 @@ int pic_setvbuf(pic_file *file, char *buf, int mode, size_t bufsiz) { /* FIXME: free old buf */ + assert(mode != _IONBF); /* FIXME: support IONBF */ file->mode = mode; if (buf) {