summaryrefslogtreecommitdiffstats
path: root/src/rcclocale.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/rcclocale.c')
-rw-r--r--src/rcclocale.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rcclocale.c b/src/rcclocale.c
index c0b4e63..99d2b8f 100644
--- a/src/rcclocale.c
+++ b/src/rcclocale.c
@@ -108,7 +108,7 @@ int rccLocaleGetCharset(char *result, const char *lv, unsigned int n) {
for (i=0;((l[i])&&(l[i]!='@'));i++);
if (i>=n) return -1;
- strncpy(result,l,i);
+ strncpy(result,l+1,i-1);
result[i]=0;
return 0;