OBS User unknown 2007-06-20 17:15:02 +00:00 committed by Git OBS Bridge
parent d14e50c379
commit 9c09ca6f4d
3 changed files with 23 additions and 1 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed Jun 20 15:15:28 CEST 2007 - werner@suse.de
- Fix pointer arithmetics within sh_trim() (bug #284611)
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Jun 19 16:01:40 CEST 2007 - werner@suse.de Tue Jun 19 16:01:40 CEST 2007 - werner@suse.de

View File

@ -18,7 +18,7 @@ Group: System/Shells
PreReq: /bin/ln /etc/bash.bashrc /bin/true PreReq: /bin/ln /etc/bash.bashrc /bin/true
Autoreqprov: on Autoreqprov: on
Version: 93s Version: 93s
Release: 23 Release: 24
Summary: Korn Shell Summary: Korn Shell
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
Source: INIT.2007-03-28.tar.bz2 Source: INIT.2007-03-28.tar.bz2
@ -278,6 +278,8 @@ fi
%{_includedir}/ast/ %{_includedir}/ast/
%changelog %changelog
* Wed Jun 20 2007 - werner@suse.de
- Fix pointer arithmetics within sh_trim() (bug #284611)
* Tue Jun 19 2007 - werner@suse.de * Tue Jun 19 2007 - werner@suse.de
- Correct bug ID (bug #284580) - Correct bug ID (bug #284580)
* Fri May 25 2007 - werner@suse.de * Fri May 25 2007 - werner@suse.de

View File

@ -116,6 +116,21 @@
#endif #endif
@@ -250,12 +250,13 @@ void sh_trim(register char *sp)
if(sp)
{
dp = sp;
- while(c= *sp)
+ while((c = *sp))
{
#if SHOPT_MULTIBYTE
int len;
if(mbwide() && (len=mbsize(sp))>1)
{
+ memmove(dp, sp, len);
dp += len;
sp += len;
continue;
--- src/lib/libast/comp/setlocale.c --- src/lib/libast/comp/setlocale.c
+++ src/lib/libast/comp/setlocale.c 2007-03-28 18:24:16.098860000 +0200 +++ src/lib/libast/comp/setlocale.c 2007-03-28 18:24:16.098860000 +0200
@@ -32,6 +32,7 @@ @@ -32,6 +32,7 @@