mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-06-19 01:35:30 +08:00

kernel: bump to 4.14.193, 4.19.138, 5.4.59 (#5350) 431fb8c mac80211: add AQL improvements 6bdd4c9 mac80211: add missing backports for building with 4.14 kernels 0106820 mac80211: add missing return code checks in AQL improvements e7f7101 mac80211: rework encapsulation offload support [package] base-files: add function for generating random MAC dnsmasq: abort dhcp_check on interface state boot: sync upstream source code ath10k-ct-firmware/mt76/sch_cake: update to latest git HEAD [script] download: add China Mirror Station [target] Sync: arc770, ath79, bcm63xx, kirkwood, lantiq, layerscape, mediatek, mvebu, octeon, oxnas, pistachio, uml Sync most of the target patches. Run-compiled-on: ipq40xx (4.19 & 5.4), ramips
12 lines
287 B
C
12 lines
287 B
C
#include <stdint.h>
|
|
#include <string.h>
|
|
|
|
#pragma once
|
|
|
|
#define FW_MEMCPY_STR(dst, src) \
|
|
do { \
|
|
size_t slen = strlen(src); \
|
|
size_t dlen = sizeof(dst); \
|
|
memcpy(dst, src, slen > dlen ? dlen : slen); \
|
|
} while (0);
|