mirror of
https://dev.iopsys.eu/bbf/bbfdm.git
synced 2026-01-28 01:47:18 +01:00
HF-8055: BBFDM Microservice DotSo plugin gives 9005 Invalid Parameter Name
This commit is contained in:
parent
e22698c246
commit
f6aa50879f
1 changed files with 1 additions and 1 deletions
|
|
@ -2106,7 +2106,7 @@ char *replace_str(const char *input_str, const char *old_substr, const char *new
|
|||
}
|
||||
|
||||
// Count occurrences of old_substr in input_str
|
||||
for (size_t i = 0; input_str[i] != '\0'; i++) {
|
||||
for (size_t i = 0; i<input_str_len; i++) {
|
||||
if (strstr(&input_str[i], old_substr) == &input_str[i]) {
|
||||
occurrences++;
|
||||
i += old_substr_len;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue