Skip to content

Commit

Permalink
utils: fix typos
Browse files Browse the repository at this point in the history
Signed-off-by: lecaros <[email protected]>
  • Loading branch information
lecaros authored and edsiper committed Sep 27, 2024
1 parent 4099422 commit 31f3255
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/flb_utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -758,7 +758,7 @@ static inline void encoded_to_buf(char *out, const char *in, int len)

/*
* Write string pointed by 'str' to the destination buffer 'buf'. It's make sure
* to escape sepecial characters and convert utf-8 byte characters to string
* to escape special characters and convert utf-8 byte characters to string
* representation.
*/
int flb_utils_write_str(char *buf, int *off, size_t size,
Expand Down Expand Up @@ -1170,10 +1170,10 @@ int flb_utils_proxy_url_split(const char *in_url, char **out_protocol,
/* Advance position after protocol */
proto_sep += 3;

/* Seperate `username:password` and `host:port` */
/* Separate `username:password` and `host:port` */
at_sep = strrchr(proto_sep, '@');
if (at_sep) {
/* Parse username:passwrod part. */
/* Parse username:password part. */
tmp = strchr(proto_sep, ':');
if (!tmp) {
flb_free(protocol);
Expand Down

0 comments on commit 31f3255

Please sign in to comment.