1
0
mirror of https://github.com/abperiasamy/rtl8812AU_8821AU_linux.git synced 2025-10-20 09:31:11 +02:00

Fix using sprintf for extending string, which causes undefined behavior. (#334)

This commit is contained in:
Coleman
2020-07-17 08:53:00 +08:00
committed by GitHub
parent fa68771376
commit be57045a09
2 changed files with 55 additions and 55 deletions

View File

@@ -1871,7 +1871,7 @@ u32 mp_query_psd(PADAPTER pAdapter, u8 *data)
} else {
psd_data = rtw_GetPSDData(pAdapter, i);
}
sprintf(data, "%s%x ", data, psd_data);
sprintf(data + strlen(data), "%x ", psd_data);
i++;
}