diff options
| author | Jun-ichi Takimoto <takimoto-j@kba.biglobe.ne.jp> | 2019-03-25 23:51:57 +0900 |
|---|---|---|
| committer | Jun-ichi Takimoto <takimoto-j@kba.biglobe.ne.jp> | 2019-03-25 23:51:57 +0900 |
| commit | 52f3266bd010918122ae039510486131a2c4afe3 (patch) | |
| tree | 11aa2eb36c4aa4948e1d58dff38f42dc8dba70d9 /Src/Modules | |
| parent | 44162 (tweaked): Avoid format-overflow warning in zftp.c (diff) | |
| download | zsh-52f3266bd010918122ae039510486131a2c4afe3.tar zsh-52f3266bd010918122ae039510486131a2c4afe3.tar.gz zsh-52f3266bd010918122ae039510486131a2c4afe3.tar.bz2 zsh-52f3266bd010918122ae039510486131a2c4afe3.tar.lz zsh-52f3266bd010918122ae039510486131a2c4afe3.tar.xz zsh-52f3266bd010918122ae039510486131a2c4afe3.tar.zst zsh-52f3266bd010918122ae039510486131a2c4afe3.zip | |
44176: warn only if off_t is longer than long
Diffstat (limited to 'Src/Modules')
| -rw-r--r-- | Src/Modules/zftp.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Src/Modules/zftp.c b/Src/Modules/zftp.c index adf35b69e..8bebc020d 100644 --- a/Src/Modules/zftp.c +++ b/Src/Modules/zftp.c @@ -2512,7 +2512,8 @@ zftp_local(UNUSED(char *name), char **args, int flags) #ifdef OFF_T_IS_64_BIT printf("%s %s\n", output64(sz), mt); #else - DPUTS(sizeof(sz) > 4, "Shell compiled with wrong off_t size"); + DPUTS(sizeof(sz) > sizeof(long), + "Shell compiled with wrong off_t size"); printf("%ld %s\n", (long)sz, mt); #endif zsfree(mt); |
