Skip to content

Commit ee05c33

Browse files
jasnelladdaleax
andauthored
Update src/crypto/crypto_cipher.cc
Co-authored-by: Anna Henningsen <[email protected]>
1 parent 11b8389 commit ee05c33

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/crypto/crypto_cipher.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ void GetCipherInfo(const FunctionCallbackInfo<Value>& args) {
128128

129129
// Lowercase the name in place before we create the JS string from it.
130130
std::string name_str(cipher.getName());
131-
for (char& c : name_str) c = static_cast<char>(ToLower(c));
131+
name_str = ToLower(name_str);
132132

133133
values[0] = ToV8Value(env->context(), cipher.getModeLabel(), env->isolate());
134134
values[1] = ToV8Value(env->context(), name_str, env->isolate());

0 commit comments

Comments
 (0)