diff --git a/src/modules/module_30700.c b/src/modules/module_30700.c index 281d818e3..953ed21da 100644 --- a/src/modules/module_30700.c +++ b/src/modules/module_30700.c @@ -175,9 +175,7 @@ int module_hash_encode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE u8 *out_buf = (u8 *) line_buf; - int out_len = strlen("sha256:");; - - memcpy (out_buf, "sha256:", out_len); + int out_len = snprintf (line_buf, line_size, "%s:", SIGNATURE_ANOPE); u32_to_hex (tmp[0], out_buf + out_len); out_len += 8; u32_to_hex (tmp[1], out_buf + out_len); out_len += 8;