Bug 836126: Use size_t instead of int for loop variable, in loop running from 0 to sizeof(something). r=ekr

This commit is contained in:
Daniel Holbert 2013-01-31 09:13:29 -08:00
parent 4fb32645f1
commit 0b130466ed

View File

@ -41,7 +41,7 @@ TemporaryRef<DtlsIdentity> DtlsIdentity::Generate() {
std::string name;
char chunk[3];
for (int i=0; i<sizeof(random_name); ++i) {
for (size_t i = 0; i < sizeof(random_name); ++i) {
PR_snprintf(chunk, sizeof(chunk), "%.2x", random_name[i]);
name += chunk;
}