From 3fbe6edb3f2250fcf494e70105039a4f32c52066 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Tue, 6 Apr 2021 03:20:43 +0200 Subject: Use libsimple instead of libcore MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- backlight.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'backlight.c') diff --git a/backlight.c b/backlight.c index 966b973..7d74599 100644 --- a/backlight.c +++ b/backlight.c @@ -425,7 +425,7 @@ main(int argc, char *argv[]) stpcpy(p, "/brightness"); if (access(path, F_OK)) continue; - devs = erealloc2(devs, ndevs + 1, sizeof(*devs)); + devs = ereallocn(devs, ndevs + 1, sizeof(*devs), 0); devs[ndevs] = strdup(f->d_name); if (!devs[ndevs++]) eprintf("strdup:"); -- cgit v1.2.3-70-g09d2