2
0
Fork 0

Fix problem with memcpy-macros

This commit is contained in:
Stefan Bühler 2009-10-03 21:51:24 +02:00
parent 3222d42bba
commit f9efd8a5ab
1 changed files with 1 additions and 1 deletions

View File

@ -116,7 +116,7 @@ static void core_instance_parse(liServer *srv, liPlugin *p, liValue **options) {
vallen = strlen(val);
entry = g_malloc(keylen + 1 /* "=" */ + vallen + 1 /* \0 */);
memcpy(entry, GSTR_LEN(ei->data.string));
memcpy(entry, ei->data.string->str, keylen);
entry[keylen] = '=';
memcpy(entry + keylen+1, val, vallen);
entry[keylen + vallen + 1] = '\0';