X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/55acbb2a3903f7940d0db5fae2e8f4fdab51d1b8..9e130475f9d8c727a5d99db54bc6d52b88a13e78:/client/util.c diff --git a/client/util.c b/client/util.c index 8a62e361..fa24906d 100644 --- a/client/util.c +++ b/client/util.c @@ -10,7 +10,7 @@ #include "util.h" -#ifndef WIN32 +#ifndef _WIN32 #include #include int ukbhit(void) @@ -80,15 +80,13 @@ void AddLogCurrentDT(char *fileName) { AddLogLine(fileName, "\nanticollision: ", buff); } -void FillFileNameByUID(char *fileName, uint8_t * uid, char *ext) { +void FillFileNameByUID(char *fileName, uint8_t * uid, char *ext, int byteCount) { char * fnameptr = fileName; memset(fileName, 0x00, 200); - for (int j = 0; j < 7; j++, fnameptr += 2) + for (int j = 0; j < byteCount; j++, fnameptr += 2) sprintf(fnameptr, "%02x", uid[j]); sprintf(fnameptr, "%s", ext); - - printf("fname:%s", fileName); } // printing and converting functions