sfm

simple file manager
git clone https://git.afify.dev/sfm.git
Log | Files | Refs | README | LICENSE

commit b5b0bb7ae0c37328124dd8564ff1b15433500af8
parent 62f026d40ee3bc1f3f0c469f7a610afca0fc85be
Author: Christoph Polcin <coco@miconoco.de>
Date:   Fri, 15 Jul 2022 11:16:12 +0200

[fix] cats tolower input avoid undefined behavior

Diffstat:
Msfm.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sfm.c b/sfm.c @@ -475,7 +475,7 @@ get_ext(char *str) strncpy(ext, &str[len - counter], MAX_EXT); ext[MAX_EXT] = '\0'; for(char *p=ext; *p; p++) { - *p=tolower(*p); + *p=tolower(*(const unsigned char *)p); } return ext; }