guitarix/guitarix-format-string.patch
Guido Aulisi bd98c89760 Update to 0.40.0
Add appdata
Some spec cleanup
2020-06-12 18:10:54 +02:00

13 lines
501 B
Diff

diff --git a/trunk/src/LV2/xputty/xfilepicker.cpp b/trunk/src/LV2/xputty/xfilepicker.cpp
index 5c4b4db7..605dde02 100644
--- a/src/LV2/xputty/xfilepicker.cpp
+++ b/src/LV2/xputty/xfilepicker.cpp
@@ -191,6 +191,6 @@ void fp_init(FilePicker *filepicker, const char *path) {
filepicker->selected_file = NULL;
filepicker->path = NULL;
filepicker->filter = NULL;
- asprintf(&filepicker->path, path);
+ asprintf(&filepicker->path, "%s", path);
assert(filepicker->path != NULL);
}