From 3cc07dddfbc2c5cb57fcd1849df55fca57f119db Mon Sep 17 00:00:00 2001 From: cinap_lenrek Date: Thu, 21 Jul 2022 00:44:34 +0000 Subject: [PATCH] devrtc: fix mistake. --- sys/src/9/imx8/devrtc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/src/9/imx8/devrtc.c b/sys/src/9/imx8/devrtc.c index 87b4c5533..a30c6cfef 100644 --- a/sys/src/9/imx8/devrtc.c +++ b/sys/src/9/imx8/devrtc.c @@ -177,7 +177,7 @@ rtcwrite(Chan* c, void* buf, long n, vlong off) 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;