Skip to content

Commit d13ecb5

Browse files
use _custom_fossil_test_strdup
1 parent f7835d0 commit d13ecb5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

code/source/mockup/mockup.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,10 @@ void fossil_mock_destroy(MockCallList *list) {
3838

3939
void fossil_mock_add_call(MockCallList *list, const char *function_name, char **arguments, int num_args) {
4040
MockCall *call = (MockCall *)malloc(sizeof(MockCall));
41-
call->function_name = strdup(function_name);
41+
call->function_name = _custom_fossil_test_strdup(function_name);
4242
call->arguments = (char **)malloc(num_args * sizeof(char *));
4343
for (int i = 0; i < num_args; ++i) {
44-
call->arguments[i] = strdup(arguments[i]);
44+
call->arguments[i] = _custom_fossil_test_strdup(arguments[i]);
4545
}
4646
call->num_args = num_args;
4747
call->next = xnullptr;

0 commit comments

Comments
 (0)