stupid me, I really did want to copy the string here

This commit is contained in:
Sebastian Ramacher 2011-10-17 09:37:22 +02:00
parent ca885e5a27
commit bcfa016097

View file

@ -328,7 +328,7 @@ zathura_db_read_key_file_from_file(const char* path)
free(content);
content = malloc(sizeof(char) * (dummy_len + 1));
content = strncat(content, dummy_content, dummy_len + 1);
content = memcpy(content, dummy_content, dummy_len + 1);
contentlen = dummy_len;
}