From 4e6e4f0e875b93bff1648332a3ac26c0d7a916f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=AF=BA=E9=B8=A1=E9=B8=AD?= <107602367+chase535@users.noreply.github.com> Date: Fri, 27 Jan 2023 00:21:08 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=9D=83=E9=99=90=E9=97=AE?= =?UTF-8?q?=E9=A2=98=EF=BC=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- accurate_battery.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/accurate_battery.c b/accurate_battery.c index 4bde02a..b4bf790 100644 --- a/accurate_battery.c +++ b/accurate_battery.c @@ -10,7 +10,7 @@ void set_value(char *file, char *numb) FILE *fn; if(access(file, F_OK) == 0) { - chmod(file, 777); + chmod(file, 0777); fn = fopen(file, "wt"); if(fn != NULL) {