ref: 5d347485e57b91134cd4f68b05a8a783896fed5c
parent: 1ba3f69232ba99ef7f31039b65f516eed2550f5d
author: Noam Preil <[email protected]>
date: Thu Apr 7 12:02:05 EDT 2022
object: fix incorrectly strict op parsing
--- a/object.c
+++ b/object.c
@@ -36,7 +36,7 @@
{
int sz, c, full = 0;
char buf[8];
- for(sz = 0; sz < 7;){
+ for(sz = 0; sz < 7; sz += 1){
c = Sgetc(s);
if(c < 0)
break;
@@ -46,10 +46,7 @@
break;
}
buf[sz] = c;
- sz += 1;
}
- if(!full)
- return nil;
buf[sz] = 0;
return strdup(buf);
}