BLI_storage: Split text/binary version of mem-from-file funcs
[blender.git] / source / blender / editors / curve / editfont.c
index 542c7fe5d90f4ea1ce9be8ddd36d4a391df84276..3a995be0f7c748e658352dbe8bf238b04f54d2c6 100644 (file)
@@ -349,7 +349,7 @@ static int paste_from_file(bContext *C, ReportList *reports, const char *filenam
        size_t filelen;
        int retval;
 
-       strp = BLI_file_read_as_mem(filename, 1, &filelen);
+       strp = BLI_file_read_text_as_mem(filename, 1, &filelen);
        if (strp == NULL) {
                BKE_reportf(reports, RPT_ERROR, "Failed to open file '%s'", filename);
                return OPERATOR_CANCELLED;