devilhorns pushed a commit to branch master.
commit 9fb63c761f599d6631d60689bf23e8aa63ea1a6b
Author: Chris Michael <[email protected]>
Date: Mon Jul 8 08:52:50 2013 +0100
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 <[email protected]>
---
src/lib/ecore_imf/ecore_imf_context.c | 6 +++---
1 file 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 04e85d8..3601b41 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)
EAPI void
ecore_imf_context_preedit_start_event_add(Ecore_IMF_Context *ctx)
{
- Ecore_IMF_Event_Commit *ev;
+ Ecore_IMF_Event_Preedit_Start *ev;
if (!ECORE_MAGIC_CHECK(ctx, ECORE_MAGIC_CONTEXT))
{
@@ -586,7 +586,7 @@ ecore_imf_context_preedit_start_event_add(Ecore_IMF_Context
*ctx)
EAPI void
ecore_imf_context_preedit_end_event_add(Ecore_IMF_Context *ctx)
{
- Ecore_IMF_Event_Commit *ev;
+ Ecore_IMF_Event_Preedit_End *ev;
if (!ECORE_MAGIC_CHECK(ctx, ECORE_MAGIC_CONTEXT))
{
@@ -604,7 +604,7 @@ ecore_imf_context_preedit_end_event_add(Ecore_IMF_Context
*ctx)
EAPI void
ecore_imf_context_preedit_changed_event_add(Ecore_IMF_Context *ctx)
{
- Ecore_IMF_Event_Commit *ev;
+ Ecore_IMF_Event_Preedit_Changed *ev;
if (!ECORE_MAGIC_CHECK(ctx, ECORE_MAGIC_CONTEXT))
{
--
------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:
Build for Windows Store.
http://p.sf.net/sfu/windows-dev2dev