summaryrefslogtreecommitdiff
path: root/lib/softoken/pkcs11.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/softoken/pkcs11.c')
-rw-r--r--lib/softoken/pkcs11.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/softoken/pkcs11.c b/lib/softoken/pkcs11.c
index ab71e60cc..e9dc09acf 100644
--- a/lib/softoken/pkcs11.c
+++ b/lib/softoken/pkcs11.c
@@ -1714,7 +1714,7 @@ sftk_handleObject(SFTKObject *object, SFTKSession *session)
* token objects and will have a token object handle assigned to
* them by a call to sftk_mkHandle in the handler for each object
* class, invoked below.
- *
+ *
* It may be helpful to note/remember that
* sftk_narrowToXxxObject uses sftk_isToken,
* sftk_isToken examines the sign bit of the object's handle, but
@@ -2568,7 +2568,7 @@ sftk_getDefTokName(CK_SLOT_ID slotID)
default:
break;
}
- sprintf(buf, "NSS Application Token %08x ", (unsigned int)slotID);
+ snprintf(buf, sizeof(buf), "NSS Application Token %08x ", (unsigned int)slotID);
return buf;
}
@@ -2587,7 +2587,7 @@ sftk_getDefSlotName(CK_SLOT_ID slotID)
default:
break;
}
- sprintf(buf,
+ snprintf(buf, sizeof(buf),
"NSS Application Slot %08x ",
(unsigned int)slotID);
return buf;