mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-11-10 07:00:08 +01:00
Chore: use ffStrCopyN instead of strlcpy
This commit is contained in:
7 files changed
+29
-17
No files matched your search
@@ -190,7 +190,7 @@ static const char* detectWifiWithIoctls(FFWifiResult* item)
|
||||
return "socket() failed";
|
||||
|
||||
struct iwreq iwr;
|
||||
strlcpy(iwr.ifr_name, item->inf.description.chars, IFNAMSIZ);
|
||||
ffStrCopyN(iwr.ifr_name, item->inf.description.chars, IFNAMSIZ);
|
||||
ffStrbufEnsureFree(&item->conn.ssid, IW_ESSID_MAX_SIZE);
|
||||
iwr.u.essid.pointer = (caddr_t) item->conn.ssid.chars;
|
||||
iwr.u.essid.length = IW_ESSID_MAX_SIZE + 1;
|
||||
|
||||
Reference in new issue
Block a user