aboutsummaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/core/system.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/core/system.c b/src/lib/core/system.c
index d0956f4..4f1ece6 100644
--- a/src/lib/core/system.c
+++ b/src/lib/core/system.c
@@ -182,7 +182,7 @@ char *shell_output(const char *command, int *status) {
}
result = tmp;
}
- strncat(result, line, current_size - strlen(result) - 1);
+ safe_strncat(result, line, current_size);
memset(line, 0, sizeof(line));
}
*status = pclose(pp);