aboutsummaryrefslogtreecommitdiff
path: root/darwin.c
diff options
context:
space:
mode:
Diffstat (limited to 'darwin.c')
-rw-r--r--darwin.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/darwin.c b/darwin.c
index 843ee93..4a5986b 100644
--- a/darwin.c
+++ b/darwin.c
@@ -2,12 +2,12 @@
#include "common.h"
char *get_sys_product_darwin() {
- char model[100] = {0};
+ static char model[100] = {0};
size_t len;
len = sizeof(model);
sysctlbyname("hw.model", model, &len, NULL, 0);
- return strdup(model);
+ return model;
}
ssize_t get_sys_memory() {