X-Git-Url: http://cvs.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/f6c18637ca504d2eea0bc3accaabddd132d749fb..c70cef9734647bed49c76a78f5a10c086e0f2ffc:/armsrc/util.c diff --git a/armsrc/util.c b/armsrc/util.c index 8ff5b68d..0558fb94 100644 --- a/armsrc/util.c +++ b/armsrc/util.c @@ -265,7 +265,7 @@ void FormatVersionInformation(char *dst, int len, const char *prefix, void *vers { struct version_information *v = (struct version_information*)version_information; dst[0] = 0; - strncat(dst, prefix, len); + strncat(dst, prefix, len-1); if(v->magic != VERSION_INFORMATION_MAGIC) { strncat(dst, "Missing/Invalid version information", len - strlen(dst) - 1); return;