shithub: mc

Download patch

ref: 74d91a0021de012908cfdb35fb61a1473a376130
parent: ff88594df5c5df6fb8f227ab8e5df3529ba6e72f
author: Ori Bernstein <ori@eigenstate.org>
date: Sun May 22 21:02:07 EDT 2022

usefiles: fix ty->nmemb when loading array (thanks mural)

--- a/parse/use.c
+++ b/parse/use.c
@@ -418,6 +418,7 @@
 	case Tyarray:
 		rdtype(fd, &ty->sub[0]);
 		ty->asize = unpickle(fd);
+		ty->nmemb = 1;
 		break;
 	case Tyslice:
 		rdtype(fd, &ty->sub[0]);