[Github-comments] [geany] Fix the "source file has been modified" issue (#621)

elextr notifications at xxxxx
Sun Sep 27 23:20:08 UTC 2015


>  	{
>  		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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20150927/95443b45/attachment.html>


More information about the Github-comments mailing list