Minor fixes
This commit is contained in:
parent
2a1f00c21f
commit
07b64ce968
2
debian/changelog
vendored
2
debian/changelog
vendored
@ -2,6 +2,8 @@ bforce (0.27.1) UNRELEASED; urgency=medium
|
|||||||
|
|
||||||
* Fixed clear flags on points in nlookup if none
|
* Fixed clear flags on points in nlookup if none
|
||||||
|
|
||||||
|
-- Alexey Khromov <zx@zxalexis.ru> Thu, 01 May 2025 22:19:54 +0300
|
||||||
|
|
||||||
bforce (0.27) UNRELEASED; urgency=medium
|
bforce (0.27) UNRELEASED; urgency=medium
|
||||||
|
|
||||||
* Fixed warnings from PVS-Studio analyser
|
* Fixed warnings from PVS-Studio analyser
|
||||||
|
@ -223,6 +223,12 @@ char *string_chomp(char *str)
|
|||||||
|
|
||||||
if( *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);
|
p = str + strlen(str + 1);
|
||||||
if( *p == '\n' )
|
if( *p == '\n' )
|
||||||
*p-- = '\0';
|
*p-- = '\0';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user