Archived
3
0

fixed somes errors produce by Philip

This commit is contained in:
lapupe 2016-09-28 19:28:35 +02:00
parent fff8ab104a
commit 716a6d1197

View File

@ -24,8 +24,8 @@ int file_write (const char *path, const char *buf, size_t msize)
int ret = 0;
int ret2 = 0;
ret = write (fd, buf, msize);
if (ret <= 0) {
fprintf (stderr, "err: written %s\n", path);
if (ret < 0) {
fprintf (stderr, "err: written %s buf = %s\n", path, buf);
}
ret2 = close (fd);