diff options
author | Joseph Hunkeler <jhunkeler@gmail.com> | 2024-06-14 19:47:34 -0400 |
---|---|---|
committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2024-06-14 19:47:34 -0400 |
commit | 91d7f4f70583e3aab13ae503bdeda97073cedb07 (patch) | |
tree | 8572a8fa782b9601f5ecf3b464fac6211c7dc394 /include | |
parent | 77b3517c8d6d01526a1c5be9109981ca269dd21f (diff) | |
download | stasis-91d7f4f70583e3aab13ae503bdeda97073cedb07.tar.gz |
Fix redaction code to accept NULL pointers in array
* And let the caller specify the length of the array of strings to redact.
* Redactions now occur directly on authentication strings rather than their command line arguments
Diffstat (limited to 'include')
-rw-r--r-- | include/utils.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/utils.h b/include/utils.h index a340cd7..8840a0d 100644 --- a/include/utils.h +++ b/include/utils.h @@ -329,7 +329,7 @@ char *collapse_whitespace(char **s); * @param maxlen maximum length of dest byte array * @return 0 on success, -1 on error */ -int redact_sensitive(const char **to_redact, char *src, char *dest, size_t maxlen); +int redact_sensitive(const char **to_redact, size_t to_redact_size, char *src, char *dest, size_t maxlen); /** * Given a directory path, return a list of files |