commit 47112f6094edb866f5f668554c53348bc427ac35 from: Stefan Sperling date: Mon Mar 11 18:32:21 2019 UTC fix allocation size bug in got_lockfile_lock() commit - 0647c5632b63a9e72b2b15674297b10429322f97 commit + 47112f6094edb866f5f668554c53348bc427ac35 blob - 5fb38e763b15fc0db4b035e8dbc8e53b16e194b1 blob + 97ae4bcc012e101a64b51d16c5a471a8f307aacc --- lib/lockfile.c +++ lib/lockfile.c @@ -37,7 +37,7 @@ got_lockfile_lock(struct got_lockfile **lf, const char const int flags = O_RDONLY | O_CREAT | O_EXCL | O_EXLOCK; int attempts = 5; - *lf = calloc(1, sizeof(*lf)); + *lf = calloc(1, sizeof(**lf)); if (*lf == NULL) return got_error_from_errno(); (*lf)->fd = -1;