Fix Klocwork errors in liblight

1. Fix null pointer de-reference klocwork error in liblight.
2. sprintf is part of ScanBan function. Replace sprintf with snprintf.

Change-Id: If408be6040481f5edda78cfeed477b30ab5b5e73

Conflicts:
	liblights/lights.c
Merge branch 'slim' of https://github.com/sileshn/android_device_samsung_melius-common into slim
serrano: Remove dual-sim stuff

* Let the dual-sim guys deal with this in their device repo

Change-Id: I7b48cf4fe72a061bd119459100e56b4efaf838ef