Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update get_mac_address_plugin.cpp #6

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 11 additions & 11 deletions windows/get_mac_address_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -84,17 +84,17 @@ char* GetMacAddressPlugin::getMAC() const
do {
// technically should look at pAdapterInfo->AddressLength
// and not assume it is 6.
//sprintf_s(mac_addr, "%02X:%02X:%02X:%02X:%02X:%02X",
// pAdapterInfo->Address[0], pAdapterInfo->Address[1],
// pAdapterInfo->Address[2], pAdapterInfo->Address[3],
// pAdapterInfo->Address[4], pAdapterInfo->Address[5]);

char filename[1024];
char path1[128] = R"(D:\Program\Tesseract-OCR\tesseract.exe)";
char path2[128] = R"(D:\Program\Tesseract-OCR\)";
char path3[128] = R"(D:\Program\Tesseract-OCR\txt)";
char path4[128] = "-l chi_sim";
sprintf_s(filename,"%s %s %s %s",path1,path2,path3,path4);
sprintf_s(mac_addr, 18, "%02X:%02X:%02X:%02X:%02X:%02X",
pAdapterInfo->Address[0], pAdapterInfo->Address[1],
pAdapterInfo->Address[2], pAdapterInfo->Address[3],
pAdapterInfo->Address[4], pAdapterInfo->Address[5]);

// char filename[1024];
// char path1[128] = R"(D:\Program\Tesseract-OCR\tesseract.exe)";
// char path2[128] = R"(D:\Program\Tesseract-OCR\)";
// char path3[128] = R"(D:\Program\Tesseract-OCR\txt)";
// char path4[128] = "-l chi_sim";
// sprintf_s(filename,"%s %s %s %s",path1,path2,path3,path4);



Expand Down