Skip to content

Commit 88ee484

Browse files
committed
Use snprintf
Change-Id: Iece1320560e0f5a93f47cd67626435266de56ce9 Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
1 parent 9aa1ead commit 88ee484

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

shared/source/os_interface/linux/drm_neo.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -483,7 +483,7 @@ std::string Drm::generateUUID() {
483483
uint64_t parts[2] = {0, 0};
484484
parts[0] = uuid & 0xFFFFFFFFFFFF;
485485
parts[1] = (uuid & 0xFFFF000000000000) >> 48;
486-
sprintf(buffer, uuidString, parts[1], parts[0]);
486+
snprintf(buffer, sizeof(buffer), uuidString, parts[1], parts[0]);
487487

488488
return std::string(buffer, 36);
489489
}

0 commit comments

Comments
 (0)