diff options
Diffstat (limited to 'protocols/Telegram/src')
| -rw-r--r-- | protocols/Telegram/src/tgl/auto-static-fetch.c | 2 | ||||
| -rw-r--r-- | protocols/Telegram/src/tgl/auto-static-print-ds.c | 2 | ||||
| -rw-r--r-- | protocols/Telegram/src/tgl/queries.c | 4 | 
3 files changed, 4 insertions, 4 deletions
diff --git a/protocols/Telegram/src/tgl/auto-static-fetch.c b/protocols/Telegram/src/tgl/auto-static-fetch.c index 4d4e47cc5c..db32029ff2 100644 --- a/protocols/Telegram/src/tgl/auto-static-fetch.c +++ b/protocols/Telegram/src/tgl/auto-static-fetch.c @@ -10,7 +10,7 @@ static int out_buf_pos;  #define eprintf(...) \    do { \ -    out_buf_pos += snprintf (out_buf + out_buf_pos, OUT_BUF_SIZE - out_buf_pos, __VA_ARGS__);\ +    out_buf_pos += _snprintf (out_buf + out_buf_pos, OUT_BUF_SIZE - out_buf_pos, __VA_ARGS__);\      assert (out_buf_pos < OUT_BUF_SIZE);\    } while (0)\ diff --git a/protocols/Telegram/src/tgl/auto-static-print-ds.c b/protocols/Telegram/src/tgl/auto-static-print-ds.c index cfec470fcc..cb006728d9 100644 --- a/protocols/Telegram/src/tgl/auto-static-print-ds.c +++ b/protocols/Telegram/src/tgl/auto-static-print-ds.c @@ -10,7 +10,7 @@ static int out_buf_pos;  #define eprintf(...) \    do { \ -    out_buf_pos += snprintf (out_buf + out_buf_pos, OUT_BUF_SIZE - out_buf_pos, __VA_ARGS__);\ +    out_buf_pos += _snprintf (out_buf + out_buf_pos, OUT_BUF_SIZE - out_buf_pos, __VA_ARGS__);\      assert (out_buf_pos < OUT_BUF_SIZE);\    } while (0)\ diff --git a/protocols/Telegram/src/tgl/queries.c b/protocols/Telegram/src/tgl/queries.c index 374f78e1f1..6c22acc0b2 100644 --- a/protocols/Telegram/src/tgl/queries.c +++ b/protocols/Telegram/src/tgl/queries.c @@ -3733,7 +3733,7 @@ static int set_get_password_on_answer (struct tgl_state *TLS, struct query *q, v      TLS->callback.get_values (TLS, tgl_new_password, "new password: ", 2, tgl_on_new_pwd, E);    } else {      static char s[512]; -    snprintf (s, 511, "old password (hint %.*s): ", DS_RSTR (DS_AP->hint)); +    _snprintf (s, 511, "old password (hint %.*s): ", DS_RSTR (DS_AP->hint));      TLS->callback.get_values (TLS, tgl_cur_and_new_password, s, 3, tgl_on_old_pwd, E);    }    return 0; @@ -3844,7 +3844,7 @@ static int check_get_password_on_answer (struct tgl_state *TLS, struct query *q,      return 0;    }    static char s[512]; -  snprintf (s, 511, "type password (hint %.*s): ", DS_RSTR (DS_AP->hint)); +  _snprintf (s, 511, "type password (hint %.*s): ", DS_RSTR (DS_AP->hint));    struct check_password_extra *E = talloc0 (sizeof (*E));  | 
