aboutsummaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@users.noreply.github.com>2021-05-16 23:16:10 -0400
committerGitHub <noreply@github.com>2021-05-16 23:16:10 -0400
commit6e313a4289d0dd30246cfbb8a0bef4309b9e2a15 (patch)
tree03f6c3729028f3c475e39e63b8d92ecb09516b6b /src/main.c
parent001bca9c77a4dec9ef348e084e95c9ead3edb576 (diff)
downloadcleanpath-6e313a4289d0dd30246cfbb8a0bef4309b9e2a15.tar.gz
Add test for --default (#8)
* Add test for --default * Remove trailing semi-colon from windows path
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index 71cc6fd..0b182fe 100644
--- a/src/main.c
+++ b/src/main.c
@@ -61,7 +61,7 @@ static int show_default_path() {
#if OS_WINDOWS
// I could not find anything in MSDN about dumping default path information.
// The internet agrees "this" is "it" (XP/Vista/8/10):
- strncpy(buf, "%SystemRoot%\\system32;%SystemRoot%;%SystemRoot%\\System32\\Wbem;", sizeof(buf));
+ strncpy(buf, "%SystemRoot%\\system32;%SystemRoot%;%SystemRoot%\\System32\\Wbem", sizeof(buf));
#elif HAVE_CONFSTR // POSIX
size_t cf_status;
cf_status = confstr(_CS_PATH, buf, sizeof(buf));