From 9bd6434f694a60730dd283eb75ff0662eaec1771 Mon Sep 17 00:00:00 2001 From: Aleksandr Karpinskii Date: Mon, 2 Sep 2024 04:59:13 +0400 Subject: [PATCH] Add debug --- src/Tk/tkImaging.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Tk/tkImaging.c b/src/Tk/tkImaging.c index 3a609e7b20f..a23d4c41038 100644 --- a/src/Tk/tkImaging.c +++ b/src/Tk/tkImaging.c @@ -60,6 +60,8 @@ ImagingFind(const char *name) { size_t name_len = strlen(name); const char *expected = ">> ImagingFind '%s'", name); + if (strncmp(name, expected, strlen(expected)) || strncmp(name + name_len - 1, ">", 1)) { return NULL;