[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH hurd 10/11] libftpconn: add out >= 2 condition to make GCC ha
From: |
Samuel Thibault |
Subject: |
Re: [PATCH hurd 10/11] libftpconn: add out >= 2 condition to make GCC happy |
Date: |
Fri, 29 Dec 2023 22:45:21 +0100 |
User-agent: |
NeoMutt/20170609 (1.8.3) |
Applied, thanks!
Flavio Cruz, le ven. 29 déc. 2023 16:21:04 -0500, a ecrit:
> ---
> libftpconn/cmd.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/libftpconn/cmd.c b/libftpconn/cmd.c
> index 9916d03..4b4c6fa 100644
> --- a/libftpconn/cmd.c
> +++ b/libftpconn/cmd.c
> @@ -99,7 +99,7 @@ ftp_conn_cmd (struct ftp_conn *conn, const char *cmd, const
> char *arg,
> snprintf (buf, sizeof buf, arg ? "%s %s\r\n" : "%s\r\n", cmd, arg);
> err = _write (conn->control, buf, out);
>
> - if (!err && conn->hooks && conn->hooks->cntl_debug)
> + if (!err && conn->hooks && conn->hooks->cntl_debug && out >= 2)
> {
> buf[out - 2] = '\0'; /* Stomp the CR & NL. */
> (* conn->hooks->cntl_debug) (conn, FTP_CONN_CNTL_DEBUG_CMD, buf);
> --
> 2.39.2
>
>
--
Samuel
---
Pour une évaluation indépendante, transparente et rigoureuse !
Je soutiens la Commission d'Évaluation de l'Inria.
- Re: [PATCH hurd 07/11] Fix a few pointer related warnings., (continued)
- [PATCH hurd 05/11] x86_64: utmp uses int32_t to store time so use a temporary variable, Flavio Cruz, 2023/12/29
- [PATCH hurd 03/11] Use mach_msg_type_number_t whenever required to avoid warnings, Flavio Cruz, 2023/12/29
- [PATCH hurd 06/11] x86_64: use 21 bytes in libps since %z might require more characters., Flavio Cruz, 2023/12/29
- [PATCH hurd 09/11] Fix overflow issues in tmpfs and vmallocate, Flavio Cruz, 2023/12/29
- [PATCH hurd 10/11] libftpconn: add out >= 2 condition to make GCC happy, Flavio Cruz, 2023/12/29
- Re: [PATCH hurd 10/11] libftpconn: add out >= 2 condition to make GCC happy,
Samuel Thibault <=
- [PATCH hurd 11/11] pfinet: fix type alias, Flavio Cruz, 2023/12/29
- [PATCH hurd 08/11] proxy-defpager: add missing return statement, Flavio Cruz, 2023/12/29
- Re: [PATCH hurd 01/11] Initialize a few error variables to avoid GCC warnings, Samuel Thibault, 2023/12/29