update version to 2.3.3

This commit is contained in:
fly_fzc 2023-01-18 11:31:25 +08:00
parent cb3b8e1152
commit 2c25421660
4 changed files with 6 additions and 35 deletions

Binary file not shown.

BIN
slang-2.3.3.tar.bz2 Normal file

Binary file not shown.

View File

@ -1,31 +0,0 @@
commit d338fd6e949ef62e7eac4eb5c024059e02158b06
Author: Miroslav Lichvar <mlichvar@redhat.com>
Date: Wed Jul 25 13:07:42 2018 +0200
Replaced memcpy in SLang_getkey
memcpy() is not defined for overlapping buffers, i.e. it may copy bytes
in any direction. As SLMEMMOVE is not defined in slang, replace the
SLMEMCPY call with a for loop.
diff --git a/src/slgetkey.c b/src/slgetkey.c
index 86e7946..d9bc678 100644
--- a/src/slgetkey.c
+++ b/src/slgetkey.c
@@ -40,13 +40,13 @@ unsigned int SLang_getkey (void)
if (SLang_Input_Buffer_Len)
{
- unsigned int imax;
+ unsigned int i, imax;
ch = (unsigned int) *SLang_Input_Buffer;
SLang_Input_Buffer_Len--;
imax = SLang_Input_Buffer_Len;
- SLMEMCPY ((char *) SLang_Input_Buffer,
- (char *) (SLang_Input_Buffer + 1), imax);
+ for (i = 0; i < imax; i++)
+ SLang_Input_Buffer[i] = SLang_Input_Buffer[i + 1];
}
else if (SLANG_GETKEY_ERROR == (ch = _pSLsys_getkey ())) return ch;

View File

@ -1,8 +1,8 @@
%bcond_with oniguruma
Name: slang
Version: 2.3.2
Release: 9
Version: 2.3.3
Release: 1
Summary: An interpreted language and programing library
License: GPLv2+
URL: https://www.jedsoft.org/slang/
@ -11,8 +11,7 @@ Source0: https://www.jedsoft.org/releases/slang/%{name}-%{version}.tar.bz2
Provides: %{name}-slsh = %{version}-%{release}
Obsoletes: %{name}-slsh < %{version}-%{release}
Patch6000: slang-getkey-memmove.patch
Patch6001: slang-sighuptest.patch
Patch0: slang-sighuptest.patch
BuildRequires: gcc libpng-devel pcre-devel zlib-devel
@ -84,6 +83,9 @@ make check
%{_mandir}/man1/slsh.1*
%changelog
* Wed Jan 18 2023 fuanan <fuanan3@h-partners.com> - 2.3.3-1
- update version to 2.3.3
* Mon Aug 02 2021 chenyanpanHW <chenyanpan@huawei.com> - 2.3.2-9
- DESC: delete -Sgit from %autosetup, and delete BuildRequires git