guitarix/guitarix-format-string.patch

13 lines
501 B
Diff
Raw Normal View History

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);
}