summaryrefslogtreecommitdiffstats
path: root/src/rccstring.c
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@dside.dyndns.org>2005-07-05 15:06:52 +0000
committerSuren A. Chilingaryan <csa@dside.dyndns.org>2005-07-05 15:06:52 +0000
commit550bda3e54a0895e027fee14860f14171a357ac9 (patch)
tree491fe42222b457dfb988f57f6dd190ab5fc9f5ff /src/rccstring.c
parent9922cef1af71786ae788903b52a8968e5775d510 (diff)
downloadlibrcc-550bda3e54a0895e027fee14860f14171a357ac9.tar.gz
librcc-550bda3e54a0895e027fee14860f14171a357ac9.tar.bz2
librcc-550bda3e54a0895e027fee14860f14171a357ac9.tar.xz
librcc-550bda3e54a0895e027fee14860f14171a357ac9.zip
Recoding Fixes
Diffstat (limited to 'src/rccstring.c')
-rw-r--r--src/rccstring.c2
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));