From 6a8aff9bab463ce83d896c18b59910cb667cf673 Mon Sep 17 00:00:00 2001 From: rhialto Date: Mon, 15 Jul 2024 19:20:40 +0000 Subject: [PATCH] Use size_t to store the result from strlen(). git-svn-id: https://svn.code.sf.net/p/vice-emu/code/trunk@45232 379a1393-f5fb-40a0-bcee-ef074d9b53f7 --- vice/src/fsdevice/fsdevice-read.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vice/src/fsdevice/fsdevice-read.c b/vice/src/fsdevice/fsdevice-read.c index de82718aa8..0ec60e8c9f 100644 --- a/vice/src/fsdevice/fsdevice-read.c +++ b/vice/src/fsdevice/fsdevice-read.c @@ -450,8 +450,8 @@ static void command_directory_get(vdrive_t *vdrive, bufinfo_t *bufinfo, /* Handle ONE * followed by text but no more (like 1581): * When at the * in A*XYZ, skip to 3 positions before * the end of the file name to try to match XYZ. */ - int rest_of_filename = strlen((const char *)p); - int rest_of_pattern = strlen(&bufinfo->dirmask[i + 1]); + size_t rest_of_filename = strlen((const char *)p); + size_t rest_of_pattern = strlen(&bufinfo->dirmask[i + 1]); if (rest_of_filename < rest_of_pattern) { break; /* no match: file name too short */