fix: default --pattern

This commit is contained in:
lohhiiccc 2026-04-27 14:16:14 +02:00
parent 0502b9a291
commit dccdca8114

View file

@ -81,7 +81,7 @@ fill_payload(uint8_t *payload, size_t len, const struct ping_config *config,
if (0 == config->pattern_len) if (0 == config->pattern_len)
{ {
for (i = offset; i < len; ++i) for (i = offset; i < len; ++i)
payload[i] = (uint8_t)('a' + ((i - offset) % 26)); payload[i] = (uint8_t)((i - offset) & 0xFF);
} }
else else
{ {