diff options
Diffstat (limited to 'src/rccstring.c')
-rw-r--r-- | src/rccstring.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rccstring.c b/src/rccstring.c index e03a22f..66cb6a9 100644 --- a/src/rccstring.c +++ b/src/rccstring.c @@ -14,7 +14,7 @@ rcc_string rccCreateString(rcc_language_id language_id, const char *buf, int len if (!res) return NULL; strncpy(res + sizeof(rcc_string_header), buf, len); - res[sizeof(rcc_string_header) + 1 + len] = 0; + res[sizeof(rcc_string_header) + len] = 0; memcpy(res, &header, sizeof(rcc_string_header)); |