sproto bugfix, see sproto issue 34 for detail

This commit is contained in:
Cloud Wu
2015-06-30 15:05:49 +08:00
parent 27ae0a7500
commit dad66010cd

View File

@@ -152,7 +152,7 @@ struct_field(const uint8_t * stream, size_t sz) {
sz -= header;
stream += header;
for (i=0;i<fn;i++) {
int value= toword(field + i * SIZEOF_FIELD + SIZEOF_HEADER);
int value= toword(field + i * SIZEOF_FIELD);
uint32_t dsz;
if (value != 0)
continue;