Use size_t for strlen length temporaries

This commit is contained in:
2026-05-20 15:34:19 -06:00
parent 9a0c07a461
commit cec7e2caf3
6 changed files with 7 additions and 6 deletions

View File

@@ -1364,7 +1364,7 @@ setup_entry_cb (GtkEntry *entry, setting *set)
int size;
int pos;
unsigned char *p = (unsigned char*)gtk_entry_get_text (entry);
int len = strlen (p);
size_t len = strlen ((const char *) p);
/* need to truncate? */
if (len >= set->extra)