diff options
author | David Timber <mieabby@gmail.com> | 2021-07-22 23:29:07 +1000 |
---|---|---|
committer | David Timber <mieabby@gmail.com> | 2021-07-22 23:29:07 +1000 |
commit | d875ed3b36f2a3fb5d6ceb3c37f6749603e4d0d3 (patch) | |
tree | 9c35f7f007b98afc873aa76278d1f142f5557009 /src/util_rt.c | |
parent | 47890abcbb69fbfedaf7ac964e08079743e6d851 (diff) |
Fix proone ...
* Fix missing feature: renaming downloaded exec to the value of
PRNE_DATA_KEY_EXEC_NAME
Diffstat (limited to 'src/util_rt.c')
-rw-r--r-- | src/util_rt.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/util_rt.c b/src/util_rt.c index 632ebee..f440f5b 100644 --- a/src/util_rt.c +++ b/src/util_rt.c @@ -367,6 +367,12 @@ char *prne_rebuild_str (void *prev, const char **const arr, const size_t cnt) { return ret; } +void prne_strzero (char *str) { + for (; *str != 0; str += 1) { + *str = 0; + } +} + bool prne_hex_fromstr (const char *str, uint_fast8_t *out) { static const uint_fast8_t shift[2] = { 4, 0 }; size_t i; |