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) {