diff options
author | Drew DeVault <sir@cmpwn.com> | 2017-12-28 07:44:21 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-28 07:44:21 -0800 |
commit | bb24895a2b1759ec78ae68bb91d13a98dc3cc9c7 (patch) | |
tree | 8c76d2152a6b21f98c879a2b5ecf4dfb05d3ff9c /backend/drm | |
parent | 04b7701e1b7a7f371caffecafae07467aa8970e7 (diff) | |
parent | b0e440b5b1e1de0030947c68cdc34b0fd902c5e8 (diff) |
Merge pull request #533 from martinetd/wl_array_add
ENOMEM checks: consistently check wl_array_add return
Diffstat (limited to 'backend/drm')
-rw-r--r-- | backend/drm/util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/backend/drm/util.c b/backend/drm/util.c index 25256343..37d99aa8 100644 --- a/backend/drm/util.c +++ b/backend/drm/util.c @@ -223,7 +223,7 @@ static bool match_obj_(struct match_state *st, size_t skips, size_t score, size_ if (score > st->score || (score == st->score && replaced < st->replaced)) { st->score = score; st->replaced = replaced; - memcpy(st->best, st->res, sizeof st->best[0] * st->num_res); + memcpy(st->best, st->res, sizeof(st->best[0]) * st->num_res); if (st->score == st->num_objs && st->replaced == 0) { st->exit_early = true; |