head 1.1; access; symbols; locks; strict; comment @// @; 1.1 date 2026.08.11.14.21.47; author riastradh; state Exp; branches; next ; commitid pftVZIdqGCIraeRG; desc @@ 1.1 log @net/transmission: Fix ctype abuse. Excluding the third-party/ directory for now -- lot more patching to do for that. PR pkg/60574: transmission-daemon etc. abort on invalid toupper(3) call @ text @$NetBSD$ --- libtransmission/utils.cc.orig 2026-06-29 23:12:56.000000000 +0000 +++ libtransmission/utils.cc @@@@ -383,7 +383,7 @@@@ std::string tr_win32_format_message(uint LocalFree(wide_text); // Most (all?) messages contain "\r\n" in the end, chop it - while (!std::empty(text) && isspace(text.back()) != 0) + while (!std::empty(text) && isspace(static_cast(text.back())) != 0) { text.resize(text.size() - 1); } @