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

Tento commit je obsažen v:
marandje
2025-09-11 18:11:11 +02:00
odevzdal GitHub
rodič 2b2b8329b5
revize 4ebc4ff5ba
2 změnil soubory, kde provedl 2 přidání a 6 odebrání
+1 -3
Zobrazit soubor
@@ -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;
@@ -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;