]> git.zerfleddert.de Git - proxmark3-svn/blobdiff - armsrc/util.c
ADD: marshmellows new lf command and DetectClock. (works great!)
[proxmark3-svn] / armsrc / util.c
index 8ff5b68d560669b4070e316d733c2957293a3d00..0558fb947024e2095d3ad57ad566fb88ba4a506b 100644 (file)
@@ -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;
Impressum, Datenschutz