summaryrefslogtreecommitdiffstats
path: root/src/rccstring.c
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@dside.dyndns.org>2010-03-11 18:52:52 +0100
committerSuren A. Chilingaryan <csa@dside.dyndns.org>2010-03-11 18:52:52 +0100
commit6d7c759b430bebb5a2a3ef6954bbb889ff55c378 (patch)
tree6ed30e8423e7cc136679a0c0492e5474f083f1ea /src/rccstring.c
parentee5803048cecea310be065e068cee40d08135ef9 (diff)
downloadlibrcc-6d7c759b430bebb5a2a3ef6954bbb889ff55c378.tar.gz
librcc-6d7c759b430bebb5a2a3ef6954bbb889ff55c378.tar.bz2
librcc-6d7c759b430bebb5a2a3ef6954bbb889ff55c378.tar.xz
librcc-6d7c759b430bebb5a2a3ef6954bbb889ff55c378.zip
Few bugs found by lint of OpenSuSE, many thanks to Novel
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 34fc831..eee2ac2 100644
--- a/src/rccstring.c
+++ b/src/rccstring.c
@@ -64,7 +64,7 @@ int rccStringFixID(rcc_string string, rcc_context ctx) {
header = (rcc_string_header*)string;
- memcpy(lang, header->language, 2); lang[3] = 0;
+ memcpy(lang, header->language, 2); lang[2] = 0;
curlang = rccGetLanguageName(ctx, header->language_id);
if ((curlang)&&(!strcasecmp(lang, curlang))) return 0;