Skip to content
Snippets Groups Projects
Commit c231b0f2 authored by Jannis Pohlmann's avatar Jannis Pohlmann
Browse files

Fix truncated strings when loading and storing emblems (bug #7171).

The last character of all key names was always left out when storing the
key/value pair in the TDB file. As a consequence, two similarly named
files (e.g. x1 and x2) were treated the same (x) and both were assigned
the same emblems.
parent a78ad608
No related branches found
No related tags found
No related merge requests found
1.3.x
=====
- Fix truncated strings when loading and storing emblems (bug #7171).
1.2.0
=====
- Properly try alternative names when creating links (bug #6867).
......
......@@ -278,7 +278,7 @@ thunar_metafile_fetch (ThunarMetafile *metafile,
/* generate the key data */
key_data.dptr = key_path;
key_data.dsize = key_size - 1;
key_data.dsize = key_size;
/* release any earlier result data */
if (G_LIKELY (metafile->data.dptr != NULL))
......@@ -373,7 +373,7 @@ thunar_metafile_store (ThunarMetafile *metafile,
/* generate the key data */
key_data.dptr = key_path;
key_data.dsize = key_size - 1;
key_data.dsize = key_size;
/* fetch the current value for the key */
value_data = thunar_metafile_read (metafile, key_data);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment