diff --git a/ut_assert/src/uttools.c b/ut_assert/src/uttools.c index b262feded..fa4fd004c 100644 --- a/ut_assert/src/uttools.c +++ b/ut_assert/src/uttools.c @@ -60,7 +60,7 @@ bool UtMem2BinFile(const void *Memory, const char *Filename, uint32 Length) struct stat dststat; if (fp = fopen(Filename, "w")) { - int fd = fileno(fp); + int fd = fileno(fp); if ((fchmod(fd, dststat.st_mode & ~(S_IRGRP | S_IWGRP | S_IXGRP | S_IROTH | S_IWOTH | S_IXOTH)) == 0) { fwrite(Memory, Length, 1, fp);