blob: be838ae0649b1184a57545ed320b916295a6fe54 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
diff --git a/xputty/xfilepicker.c b/xputty/xfilepicker.c
index 7e77fab..e76cac6 100644
--- a/xputty/xfilepicker.c
+++ b/xputty/xfilepicker.c
@@ -222,6 +222,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);
}
|