From a5f478a7d5c36c9781951593750128ce419b21a3 Mon Sep 17 00:00:00 2001 From: Yuichi Nishiwaki Date: Thu, 16 Jan 2014 19:49:41 +0900 Subject: [PATCH] currently pic_file don't support _IONBF mode --- src/port.c | 1 + 1 file changed, 1 insertion(+) 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) {