]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
Fix typo in util.c
authorSergey Dryabzhinsky <sergey.dryabzhinsky+github@gmail.com>
Tue, 19 Nov 2019 20:15:28 +0000 (23:15 +0300)
committerGitHub <noreply@github.com>
Tue, 19 Nov 2019 20:15:28 +0000 (23:15 +0300)
There must be mtim*e*

programs/util.c

index 5d15450d2e13b27f72dc2b8f4e651cf08287f267..d3ffc11337081447dd0e18922646febf67dd59b9 100644 (file)
@@ -73,7 +73,7 @@ int UTIL_setFileStat(const char *filename, stat_t *statbuf)
     {
         /* (atime, mtime) */
         struct timespec timebuf[2] = { {0, UTIME_NOW} };
-        timebuf[1] = statbuf->st_mtim;
+        timebuf[1] = statbuf->st_mtime;
         res += utimensat(AT_FDCWD, filename, timebuf, 0);
     }
 #endif