Skip to content

Commit 4cf9227

Browse files
committed
stress-rofs: use shim'd string functions
Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
1 parent ccfec5b commit 4cf9227

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

stress-rofs.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -643,7 +643,7 @@ static int stress_rofs_scandir(stress_args_t *args, const char *path, stress_rof
643643
info = calloc(1, sizeof(*info));
644644
if (!info)
645645
break;
646-
(void)strlcpy(info->d_name, de->d_name, sizeof(info->d_name));
646+
(void)shim_strscpy(info->d_name, de->d_name, sizeof(info->d_name));
647647
info->next = head;
648648
head = info;
649649
}
@@ -779,8 +779,8 @@ static int stress_rofs(stress_args_t *args)
779779
if (str) {
780780
for (j = 0; j < n_paths; j++) {
781781
if (j > 0)
782-
strlcat(str, ", ", n);
783-
strlcat(str, paths[j], n);
782+
shim_strlcat(str, ", ", n);
783+
shim_strlcat(str, paths[j], n);
784784
}
785785
pr_inf("%s: exercising %s\n", args->name, str);
786786
free(str);

0 commit comments

Comments
 (0)