Skip to content

Commit 4d2786d

Browse files
authored
fixx size parameter in hash table addition
Signed-off-by: reda ghouzraf <98324229+rghouzra@users.noreply.github.com>
1 parent 830ebd4 commit 4d2786d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugins/out_oracle_log_analytics/oci_logan_helper.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -462,7 +462,7 @@ static int init_oci_timezone_hash(void)
462462
ret = flb_hash_table_add(oci_timezone_hash,
463463
oci_supported_timezones[i],
464464
strlen(oci_supported_timezones[i]),
465-
(void *) "1", 1);
465+
(void *) "1", sizeof("1"));
466466
if (ret < 0) {
467467
fprintf(stderr, "flb_hash_table_add failed line 192");
468468
fflush(stderr);

0 commit comments

Comments
 (0)