[Github-comments] [geany/geany] Preventing destroying of symbolic/hard links in Windows OS. (#1270)
Matthew Brush
notifications at xxxxx
Sat Oct 22 01:50:18 UTC 2016
codebrainz 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!
truncate() is POSIX 2008 and AFAIK not available on Windows
--
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20161021/458b57bb/attachment.html>
More information about the Github-comments
mailing list