MCPcopy Create free account
hub / github.com/BruceDevices/firmware / copyStringToBuffer

Function copyStringToBuffer

src/modules/wifi/karma_attack.cpp:73–77  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

71}
72
73static void copyStringToBuffer(char *dest, size_t destSize, const String &src) {
74 if (destSize == 0) return;
75 strncpy(dest, src.c_str(), destSize - 1);
76 dest[destSize - 1] = '\0';
77}
78
79static bool probeSSIDEquals(const ProbeRequest &probe, const char *value) {
80 return strcmp(probe.ssid, value) == 0;

Callers 1

probe_snifferFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected