SWDEV-553750 - Fix codeql errors in hip-tests (#895)

Этот коммит содержится в:
marandje
2025-09-11 18:11:11 +02:00
коммит произвёл GitHub
родитель 2b2b8329b5
Коммит 4ebc4ff5ba
2 изменённых файлов: 2 добавлений и 6 удалений
+1 -3
Просмотреть файл
@@ -636,9 +636,7 @@ public:
// Construct client address to send this SHareable handle to
bzero(&cliaddr, sizeof(cliaddr));
cliaddr.sun_family = AF_UNIX;
char temp[10];
sprintf(temp, "%u", process);
strcpy(cliaddr.sun_path, temp);
strcpy(cliaddr.sun_path, std::to_string(process).c_str());
// Send corresponding shareable handle to the client
int sendfd = (int)shareableHdl;
+1 -3
Просмотреть файл
@@ -230,9 +230,7 @@ public:
// Construct client address to send this SHareable handle to
bzero(&cliaddr, sizeof(cliaddr));
cliaddr.sun_family = AF_UNIX;
char temp[10];
sprintf(temp, "%u", process);
strcpy(cliaddr.sun_path, temp);
strcpy(cliaddr.sun_path, std::to_string(process).c_str());
// Send corresponding shareable handle to the client
int sendfd = (int)shareableHdl;