[Github-comments] [geany/geany] Preventing destroying of symbolic/hard links in Windows OS. (#1270)
elextr
notifications at xxxxx
Sat Oct 22 01:45:14 UTC 2016
elextr commented on this pull request.
> display_name,
g_strerror(save_errno));
}
else
{
- gsize bytes_written;
-
- errno = 0;
- bytes_written = fwrite(data, sizeof(gchar), len, fp);
-
- if (len != bytes_written)
+ if(truncate(locale_filename,sizeof(gchar)*len)) // no can change file size error!
Glib makes locale_filename UTF8 on windows, you can't pass it to a clib function I don't think.
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/pull/1270#pullrequestreview-5340915
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20161021/ef1f402c/attachment.html>
More information about the Github-comments
mailing list