From 39a841cecf616098c9c8cf63bbfea5ea2922097c Mon Sep 17 00:00:00 2001 From: "\"Vladimir N. Oleynik\"" Date: Thu, 29 Sep 2005 16:18:57 +0000 Subject: change interface to bb_xasprintf() - more perfect for me. ln.c: error_msg(str)->error_msg(%s, str) - remove standart "feature" for hackers reduce 100 bytes don't care in sum --- procps/sysctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'procps/sysctl.c') diff --git a/procps/sysctl.c b/procps/sysctl.c index 359dcc041..dbb82e69c 100644 --- a/procps/sysctl.c +++ b/procps/sysctl.c @@ -209,7 +209,7 @@ int sysctl_write_setting(const char *setting, int output) return -2; } - bb_xasprintf(&tmpname, "%s%.*s", PROC_PATH, (equals - name), name); + tmpname = bb_xasprintf("%s%.*s", PROC_PATH, (equals - name), name); outname = bb_xstrdup(tmpname + strlen(PROC_PATH)); while ((cptr = strchr(tmpname, '.')) != NULL) -- cgit v1.2.3