diff options
Diffstat (limited to 'src/lib/gssapi/generic/gssapi_alloc.h')
| -rw-r--r-- | src/lib/gssapi/generic/gssapi_alloc.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/gssapi/generic/gssapi_alloc.h b/src/lib/gssapi/generic/gssapi_alloc.h index a28533ed4f..713c89537e 100644 --- a/src/lib/gssapi/generic/gssapi_alloc.h +++ b/src/lib/gssapi/generic/gssapi_alloc.h @@ -1,3 +1,4 @@ +/* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */ /* To the extent possible under law, Painless Security, LLC has waived * all copyright and related or neighboring rights to GSS-API Memory * Management Header. This work is published from: United States. @@ -60,7 +61,7 @@ gssalloc_strdup(const char *str) char *copy = gssalloc_malloc(size); if (copy) { memcpy(copy, str, size); - copy[size-1] = '\0'; + copy[size-1] = '\0'; } return copy; } |
