Xcos blocks: fix some issues reported by Coverity #2 12/12812/2
authorClément DAVID <clement.david@scilab-enterprises.com>
Thu, 3 Oct 2013 15:09:20 +0000 (17:09 +0200)
committercodereview <codereview@git.scilab.org>
Fri, 4 Oct 2013 13:25:12 +0000 (15:25 +0200)
commitf3caed2765e81f5b1f241d5adcfcbd026fbcee52
tree0cfe4c2497721ae187ffcee162aaef049a73b29e
parent42441c0beb183c6f46d7c90143aa9661e15889ff
Xcos blocks: fix some issues reported by Coverity #2

A common issue was the call of C2F(cvstr)(..., str, ..., strlen(str)) with
str as a fixed-size but non-initialized char[]. This is been fixed using
the sizeof C operator which return the right size.

Other minor issues hes been fixed as well.

Change-Id: Icc1faa1b6295f7951f31276e89fcf5fd69595cb3
scilab/modules/scicos_blocks/src/c/canimxy.c
scilab/modules/scicos_blocks/src/c/evaluate_expr.c
scilab/modules/scicos_blocks/src/c/fromws_c.c
scilab/modules/scicos_blocks/src/c/readau.c
scilab/modules/scicos_blocks/src/c/readc.c
scilab/modules/scicos_blocks/src/c/writec.c