shithub: plan9front

Download patch

ref: 3cc07dddfbc2c5cb57fcd1849df55fca57f119db
parent: 4063334e6f121b42b0e28fcbdd3108d040893fee
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Wed Jul 20 20:44:34 EDT 2022

devrtc: fix mistake.

--- a/sys/src/9/imx8/devrtc.c	Wed Jul 20 14:52:02 2022
+++ b/sys/src/9/imx8/devrtc.c	Wed Jul 20 20:44:34 2022
@@ -177,7 +177,7 @@
 		if(n >= sizeof(sbuf))
 			error(Ebadarg);
 		strncpy(sbuf, buf, n);
-		sbuf[n] = '\0'
+		sbuf[n] = '\0';
 		for(cp = sbuf; *cp != '\0'; cp++)
 			if(*cp >= '0' && *cp <= '9')
 				break;