summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apps/s_client.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/s_client.c b/apps/s_client.c
index c69b8e4058..d6fd124da8 100644
--- a/apps/s_client.c
+++ b/apps/s_client.c
@@ -3828,7 +3828,7 @@ static int user_data_process(struct user_data_st *user_data, size_t *len,
cmd_start[outlen] = '\0';
for (;;) {
- cmd_start = strstr(cmd_start, "{");
+ cmd_start = strchr(cmd_start, '{');
if (cmd_start == buf_start && *(cmd_start + 1) == '{') {
/* The "{" is escaped, so skip it */
cmd_start += 2;
@@ -3843,7 +3843,7 @@ static int user_data_process(struct user_data_st *user_data, size_t *len,
if (cmd_start == buf_start) {
/* Command detected */
- char *cmd_end = strstr(cmd_start, "}");
+ char *cmd_end = strchr(cmd_start, '}');
char *arg_start;
int cmd = -1, ret = USER_DATA_PROCESS_NO_DATA;
size_t oldoff;
@@ -3858,7 +3858,7 @@ static int user_data_process(struct user_data_st *user_data, size_t *len,
return USER_DATA_PROCESS_NO_DATA;
}
*cmd_end = '\0';
- arg_start = strstr(cmd_start, ":");
+ arg_start = strchr(cmd_start, ':');
if (arg_start != NULL) {
*arg_start = '\0';
arg_start++;