display: Remove klockwork warnings and errors.
Remove all klockwork warnings and errors for libgralloc, libhwcomposer, liboverlay, libqdutils, libqservice, libvirtual, libexternal libraries to avoid buffer overflow and memory leaks. Change-Id: I078143bcbcf5e4b342156bd8305a644566f7cc4b
This commit is contained in:
@@ -191,7 +191,7 @@ bool VirtualDisplay::openFrameBuffer()
|
||||
getFbForDpy(HWC_DISPLAY_VIRTUAL);
|
||||
|
||||
char strDevPath[MAX_SYSFS_FILE_PATH];
|
||||
sprintf(strDevPath,"/dev/graphics/fb%d", fbNum);
|
||||
snprintf(strDevPath,sizeof(strDevPath), "/dev/graphics/fb%d", fbNum);
|
||||
|
||||
mFd = open(strDevPath, O_RDWR);
|
||||
if(mFd < 0) {
|
||||
|
||||
Reference in New Issue
Block a user