diff options
author | Chris Michael <cp.michael@samsung.com> | 2013-07-08 08:52:50 +0100 |
---|---|---|
committer | Chris Michael <cp.michael@samsung.com> | 2013-07-08 08:52:50 +0100 |
commit | 9fb63c761f599d6631d60689bf23e8aa63ea1a6b (patch) | |
tree | a7b3da0ddf4ea127526bf349b3b14bece5de54a6 /src/lib/ecore_imf/ecore_imf_context.c | |
parent | 6011703bf5667f0c454b73ac5cf2754931966452 (diff) |
Fix "Allocation too small" errors reported by Coverity. (Basically, if
we are going to allocate space for a variable of a certain type, then
lets make sure we Declare that variable as the proper type).
NB: Fixes Coverity CIDs 1039602, 1039603, 1039604
Signed-off-by: Chris Michael <cp.michael@samsung.com>
Diffstat (limited to 'src/lib/ecore_imf/ecore_imf_context.c')
-rw-r--r-- | src/lib/ecore_imf/ecore_imf_context.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/ecore_imf/ecore_imf_context.c b/src/lib/ecore_imf/ecore_imf_context.c index 04e85d807b..3601b4123d 100644 --- a/src/lib/ecore_imf/ecore_imf_context.c +++ b/src/lib/ecore_imf/ecore_imf_context.c | |||
@@ -568,7 +568,7 @@ _ecore_imf_event_free_preedit(void *data EINA_UNUSED, void *event) | |||
568 | EAPI void | 568 | EAPI void |
569 | ecore_imf_context_preedit_start_event_add(Ecore_IMF_Context *ctx) | 569 | ecore_imf_context_preedit_start_event_add(Ecore_IMF_Context *ctx) |
570 | { | 570 | { |
571 | Ecore_IMF_Event_Commit *ev; | 571 | Ecore_IMF_Event_Preedit_Start *ev; |
572 | 572 | ||
573 | if (!ECORE_MAGIC_CHECK(ctx, ECORE_MAGIC_CONTEXT)) | 573 | if (!ECORE_MAGIC_CHECK(ctx, ECORE_MAGIC_CONTEXT)) |
574 | { | 574 | { |
@@ -586,7 +586,7 @@ ecore_imf_context_preedit_start_event_add(Ecore_IMF_Context *ctx) | |||
586 | EAPI void | 586 | EAPI void |
587 | ecore_imf_context_preedit_end_event_add(Ecore_IMF_Context *ctx) | 587 | ecore_imf_context_preedit_end_event_add(Ecore_IMF_Context *ctx) |
588 | { | 588 | { |
589 | Ecore_IMF_Event_Commit *ev; | 589 | Ecore_IMF_Event_Preedit_End *ev; |
590 | 590 | ||
591 | if (!ECORE_MAGIC_CHECK(ctx, ECORE_MAGIC_CONTEXT)) | 591 | if (!ECORE_MAGIC_CHECK(ctx, ECORE_MAGIC_CONTEXT)) |
592 | { | 592 | { |
@@ -604,7 +604,7 @@ ecore_imf_context_preedit_end_event_add(Ecore_IMF_Context *ctx) | |||
604 | EAPI void | 604 | EAPI void |
605 | ecore_imf_context_preedit_changed_event_add(Ecore_IMF_Context *ctx) | 605 | ecore_imf_context_preedit_changed_event_add(Ecore_IMF_Context *ctx) |
606 | { | 606 | { |
607 | Ecore_IMF_Event_Commit *ev; | 607 | Ecore_IMF_Event_Preedit_Changed *ev; |
608 | 608 | ||
609 | if (!ECORE_MAGIC_CHECK(ctx, ECORE_MAGIC_CONTEXT)) | 609 | if (!ECORE_MAGIC_CHECK(ctx, ECORE_MAGIC_CONTEXT)) |
610 | { | 610 | { |