eolian - fix warnings about strin truncation by expanding buffers
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>
Tue, 6 Nov 2018 18:00:39 +0000 (18:00 +0000)
committerSangHyeon Jade Lee <sh10233.lee@samsung.com>
Tue, 20 Nov 2018 06:56:20 +0000 (15:56 +0900)
fixes noisy warnings...

src/bin/eolian/sources.c
src/lib/eolian/database_expr.c

index 3ac3b48..3904d98 100644 (file)
@@ -1096,7 +1096,7 @@ _gen_proto(const Eolian_Class *cl, const Eolian_Function *fid,
    if (!impl_same_class)
      eo_gen_class_names_get(eolian_implement_class_get(impl), NULL, NULL, &ocnamel);
 
-   char fname[256], iname[256];
+   char fname[256 + 128], iname[256];
    if (!impl_same_class)
      snprintf(iname, sizeof(iname), "%s_%s", cnamel, ocnamel);
    else
index a03c820..14af0cf 100644 (file)
@@ -107,7 +107,7 @@ static Eina_Bool
 expr_type_mismatch_error(const Eolian_Expression *lhs,
                          const Eolian_Expression *rhs)
 {
-   char buf[512];
+   char buf[512 + 128];
    char tbuf[256];
    char ebuf[256];
    mask_to_str(expr_type_to_mask(lhs), tbuf);