Don't clobber the last null terminator when reading /proc/cmdline.

Right now, if /proc/cmdline is larger than the buffer size (1024)
then the read will overwrite all of the null terminators and the
ensuing strstr calls will continue past the end of the buffer.

Bug: 29115540
Change-Id: I2da2f28edabd7926d40dbcea52ebaf7165c44e04
1 file changed
tree: a733ac45e0d3cb3c2f838ba6fa910ea530dd051d
  1. include/
  2. libril/
  3. librilutils/
  4. reference-ril/
  5. rild/
  6. CleanSpec.mk