]> git.saurik.com Git - apple/xnu.git/blobdiff - libkern/OSKextVersion.c
xnu-6153.61.1.tar.gz
[apple/xnu.git] / libkern / OSKextVersion.c
index cbdef89e21bde45ad23d873c04bb64ae40a5a5da..5a761d48b3294c3bf9b22f787b8378b3b977735c 100644 (file)
@@ -453,20 +453,20 @@ OSKextVersionGetString(
                return TRUE;
        }
 
-       cpos = snprintf(buffer, bufferLength, "%u", (uint32_t)vers_major);
+       cpos = scnprintf(buffer, bufferLength, "%u", (uint32_t)vers_major);
 
        /* Always include the minor version; it just looks weird without.
         */
        buffer[cpos] = '.';
        cpos++;
-       cpos += snprintf(buffer + cpos, bufferLength - cpos, "%u", (uint32_t)vers_minor);
+       cpos += scnprintf(buffer + cpos, bufferLength - cpos, "%u", (uint32_t)vers_minor);
 
        /* The revision is displayed only if nonzero.
         */
        if (vers_revision) {
                buffer[cpos] = '.';
                cpos++;
-               cpos += snprintf(buffer + cpos, bufferLength - cpos, "%u",
+               cpos += scnprintf(buffer + cpos, bufferLength - cpos, "%u",
                    (uint32_t)vers_revision);
        }