Replaced strcpy, strlen, strncpy with safer string functions

Using strcpy() or strlen() followed by strncpy() could be dangerous.
We should replace them.

strcpy -> strncpy
strlen -> strnlen
strcmp -> strncmp

Also fixed uninitialized structure uses.

Test: Telephony sanity tests
bug: 35108861
Change-Id: I323e2947b153d9214cfc1827168346200916431f
1 file changed
tree: c3f35821edfcaa220e30e7283257684af1181247
  1. include/
  2. libril/
  3. librilutils/
  4. reference-ril/
  5. rild/
  6. CleanSpec.mk