git: 9front

Download patch

ref: 404137489088dab53fe58e34d6dacac678983a64
parent: 7e2a5f4157fe70b29190781bc7b81f923d6de9b6
author: Sigrid <ftrvxmtrx@gmail.com>
date: Tue Jan 12 08:32:38 EST 2021

cal: fix -s 7

--- a/sys/src/cmd/cal.c
+++ b/sys/src/cmd/cal.c
@@ -54,6 +54,7 @@
 		wstart = atoi(EARGF(usage()));
 		if(wstart < 0 || wstart > 7)
 			usage();
+		wstart %= 7;
 		break;
 	default:
 		usage();
--