aboutsummaryrefslogtreecommitdiff
path: root/hardinfo2/arch/common/users.h
diff options
context:
space:
mode:
authorLeandro A. F. Pereira <leandro@hardinfo.org>2007-07-05 19:21:21 +0000
committerLeandro A. F. Pereira <leandro@hardinfo.org>2007-07-05 19:21:21 +0000
commitcdc40b11f4d7a3050bda164b2d92afc23616b7f9 (patch)
tree03cd201e20016a39a60e875e591b1d969d68f425 /hardinfo2/arch/common/users.h
parented4d0b93832732a199f4fb07c70350401f2eaceb (diff)
Cleanups. Plug most of the memleaks.
Diffstat (limited to 'hardinfo2/arch/common/users.h')
-rw-r--r--hardinfo2/arch/common/users.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/hardinfo2/arch/common/users.h b/hardinfo2/arch/common/users.h
index 5889dc0a..fd8f7834 100644
--- a/hardinfo2/arch/common/users.h
+++ b/hardinfo2/arch/common/users.h
@@ -45,9 +45,9 @@ scan_users_do(void)
uid = atoi(tmp[2]);
strend(tmp[4], ',');
if (uid >= 1000 && uid <= 65530) {
- human_users = g_strdup_printf("%s$%s$%s=%s\n", human_users, key, tmp[0], tmp[4]);
+ human_users = h_strdup_cprintf("$%s$%s=%s\n", human_users, key, tmp[0], tmp[4]);
} else {
- sys_users = g_strdup_printf("%s$%s$%s=%s\n", sys_users, key, tmp[0], tmp[4]);
+ sys_users = h_strdup_cprintf("$%s$%s=%s\n", sys_users, key, tmp[0], tmp[4]);
}
g_strfreev(tmp);