aboutsummaryrefslogtreecommitdiff
path: root/modules/computer
diff options
context:
space:
mode:
authorhwspeedy <ns@bigbear.dk>2024-05-01 00:13:10 +0200
committerhwspeedy <ns@bigbear.dk>2024-05-01 00:13:10 +0200
commitbabf0dfcd68022aa5088763258e3f50bbe7e7e29 (patch)
tree0eff3a6794036f62909a05196f366003bbf361e4 /modules/computer
parentb68e803cecdfee529544a94575073b095c4b41ba (diff)
FIX Added strwrap function and fixed width for OS, Security & Env vars
Diffstat (limited to 'modules/computer')
-rw-r--r--modules/computer/environment.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/modules/computer/environment.c b/modules/computer/environment.c
index 2f29c861..bdec7456 100644
--- a/modules/computer/environment.c
+++ b/modules/computer/environment.c
@@ -25,14 +25,16 @@ void scan_env_var(gboolean reload)
SCAN_START();
gchar **envlist;
+ gchar *st;
gint i;
g_free(_env);
_env = g_strdup_printf("[%s]\n", _("Environment Variables") );
for (i = 0, envlist = g_listenv(); envlist[i]; i++) {
- _env = h_strdup_cprintf("%s=%s\n", _env,
- envlist[i], g_getenv(envlist[i]));
+ st=strwrap(g_getenv(envlist[i]),80,':');
+ _env = h_strdup_cprintf("%s=%s\n", _env, envlist[i], st);
+ g_free(st);
}
g_strfreev(envlist);