Skip to content

Commit 75ad926

Browse files
committed
minor: Fix data_hex output
1 parent 2b8693e commit 75ad926

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/data.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ R_API data_t *data_hex(data_t *first, char const *key, char const *pretty_key, c
347347
}
348348
*p = '\0';
349349

350-
return data_append(first, key, pretty_key, DATA_FORMAT, format, DATA_STRING, val, NULL);
350+
return data_append(first, key, pretty_key, DATA_FORMAT, NULL, DATA_STRING, buf, NULL);
351351
}
352352

353353
R_API void data_array_free(data_array_t *array)

0 commit comments

Comments
 (0)