diff --git a/c/ios.c b/c/ios.c index 1ad7a9b..01fa0c9 100644 --- a/c/ios.c +++ b/c/ios.c @@ -1014,7 +1014,7 @@ int ios_printf(struct ios *s, const char *format, ...) if (len < 0) { len = 0; } - if (len > (int)sizeof(purkka)) { + if (len >= (int)sizeof(purkka)) { lerror(MemoryError, "out of memory in ios_printf buffer"); } ios_write(s, purkka, len);