diff options
author | Jim Meyering <meyering@redhat.com> | 2011-05-24 16:57:57 +0200 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2011-05-27 07:52:18 +0200 |
commit | 36896335b4439550f5d91bf79b296dc1b421b22a (patch) | |
tree | d0043ac62aa66bd6af4371d2eec9ca822f0c8ab1 | |
parent | 38a716b1e88bea53a41aac2dcaf54f68f031edff (diff) | |
download | parted-36896335b4439550f5d91bf79b296dc1b421b22a.tar.gz |
maint: correct coverity-reported "suspicious sizeof"
* parted/table.c (table_add_row): Use sizeof(*VAR), rather than
erroneous sizeof(explicit_type) that just happened to be ok.
-rw-r--r-- | parted/table.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/parted/table.c b/parted/table.c index efafaa9..cb1d447 100644 --- a/parted/table.c +++ b/parted/table.c @@ -135,7 +135,7 @@ void table_add_row (Table* t, wchar_t** row) printf("[%s]", row[i]); putchar ('\n');*/ - t->rows = xrealloc (t->rows, (t->nrows + 1) * sizeof(wchar_t***)); + t->rows = xrealloc (t->rows, (t->nrows + 1) * sizeof(*(t->rows))); t->rows[t->nrows] = row; |