diff options
Diffstat (limited to 'ports/winnt/ntpd/nt_ppsimpl.c')
-rw-r--r-- | ports/winnt/ntpd/nt_ppsimpl.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ports/winnt/ntpd/nt_ppsimpl.c b/ports/winnt/ntpd/nt_ppsimpl.c index 2a7c0d88f1d9..1ed3634cd5de 100644 --- a/ports/winnt/ntpd/nt_ppsimpl.c +++ b/ports/winnt/ntpd/nt_ppsimpl.c @@ -359,8 +359,9 @@ regfail: *op++ = *cp; } } - cp[0] = '\0'; - cp[1] = '\0'; + + *op++ = '\0'; + *op = '\0'; return s_Value; envfail: |