Evas langauge: Prevent potential buffer overflow and clean code.
authorTom Hacohen <tom@stosb.com>
Fri, 8 Apr 2016 10:34:53 +0000 (11:34 +0100)
committerTom Hacohen <tom@stosb.com>
Fri, 8 Apr 2016 10:34:53 +0000 (11:34 +0100)
commit8203c79678b4777837ce25b5d1f6fd328d4ef246
tree13778d5ffbd2b0b71ae0e474b8e104cf539d6392
parentf4f9753c201c569b1a31f0b394d9352c80a7d9d0
Evas langauge: Prevent potential buffer overflow and clean code.

We were copying a user defined string into a fixed size buffer
without doing any boundary checks. This commit fixes that.
Also cleaned up similar code that was using hardcoded numbers.

@fix.
src/lib/evas/common/language/evas_language_utils.c