{ ui_set_statusbar(TRUE, "%s", err->message); g_error_free(err); return FALSE; }
- filedata->len = (gsize) st.st_size;
Yeah agreed it looked odd. FTR I just traced it back to some encoding-related stuff, no explanation why not using the size returned by the load function
Maybe we shouldn't store the length here at all if encoding stores `strlen()` as part of its NUL checks.
--- Reply to this email directly or view it on GitHub: https://github.com/geany/geany/pull/621/files#r40511290
github-comments@lists.geany.org