shithub: riscv

Download patch

ref: 0ba08200707e5d761cbe39d6b08174f8eb868125
parent: ecba7822e316d6cb8370eec97862215402811e82
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Sat Apr 4 23:46:47 EDT 2020

dossrv: fix falloc() for >31 bit sector numbers (thanks sl)

--- a/sys/src/cmd/dossrv/dossubs.c
+++ b/sys/src/cmd/dossrv/dossubs.c
@@ -1683,7 +1683,8 @@
 {
 	Dosbpb *bp = xf->ptr;
 	Iosect *p;
-	int n, i, k;
+	int n, i;
+	vlong k;
 
 	n = bp->freeptr;
 	for(;;){