From 07b64ce96889248b32e7b71e9c6bb47abb386958 Mon Sep 17 00:00:00 2001 From: Alexey Khromov Date: Fri, 2 May 2025 00:16:29 +0300 Subject: [PATCH] Minor fixes --- debian/changelog | 2 ++ source/bforce/u_string.c | 6 ++++++ 2 files changed, 8 insertions(+) diff --git a/debian/changelog b/debian/changelog index e92f2fa..a928e3d 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,6 +1,8 @@ bforce (0.27.1) UNRELEASED; urgency=medium * Fixed clear flags on points in nlookup if none + + -- Alexey Khromov Thu, 01 May 2025 22:19:54 +0300 bforce (0.27) UNRELEASED; urgency=medium diff --git a/source/bforce/u_string.c b/source/bforce/u_string.c index 83b1ff9..09270c6 100644 --- a/source/bforce/u_string.c +++ b/source/bforce/u_string.c @@ -223,6 +223,12 @@ char *string_chomp(char *str) if( *str ) { + for (p = str; p < (str + strlen(str)); p++){ + if( *p == '\n') + *p = '\0'; + if( *p == '\r') + *p = '\0'; + } p = str + strlen(str + 1); if( *p == '\n' ) *p-- = '\0';