summaryrefslogtreecommitdiffstats
path: root/Gui/skin
diff options
context:
space:
mode:
authorjkeil <jkeil@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-08-27 15:25:11 +0000
committerjkeil <jkeil@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-08-27 15:25:11 +0000
commitf2aacd3b05a7da72a27544c97ab371c79d39794c (patch)
tree3e490f938811412eb6c7a07f322fbbc7b0d03aac /Gui/skin
parent76df9d5823e582ec7a6adfec497dccdf6c6e2ede (diff)
downloadmpv-f2aacd3b05a7da72a27544c97ab371c79d39794c.tar.bz2
mpv-f2aacd3b05a7da72a27544c97ab371c79d39794c.tar.xz
Do not overwrite memory in the width%8 == 0 case
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@1714 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'Gui/skin')
-rw-r--r--Gui/skin/skin.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Gui/skin/skin.c b/Gui/skin/skin.c
index 1dd3940031..68ca4e3d3d 100644
--- a/Gui/skin/skin.c
+++ b/Gui/skin/skin.c
@@ -148,7 +148,7 @@ int __base( char * in )
else { tmp=tmp >> 1; buf[i]=0; }
if ( b++ == 7 ) { defList->main.Mask.Image[c++]=tmp; tmp=0; b=0; }
}
- defList->main.Mask.Image[c++]=tmp;
+ if (b) defList->main.Mask.Image[c++]=tmp;
}
#ifdef DEBUG
dbprintf( 3,"[skin] mask: %dX%d\n",defList->main.Mask.Width,defList->main.Mask.Height );