X-Git-Url: http://cvs.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/55acbb2a3903f7940d0db5fae2e8f4fdab51d1b8..ab4da50d99bb4334b86ff9bc8c5795723df37966:/client/util.c?ds=inline diff --git a/client/util.c b/client/util.c index 8a62e361..0673f181 100644 --- a/client/util.c +++ b/client/util.c @@ -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