summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2011-05-24 16:57:57 +0200
committerJim Meyering <meyering@redhat.com>2011-05-27 07:52:18 +0200
commit36896335b4439550f5d91bf79b296dc1b421b22a (patch)
treed0043ac62aa66bd6af4371d2eec9ca822f0c8ab1
parent38a716b1e88bea53a41aac2dcaf54f68f031edff (diff)
downloadparted-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.c2
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;