On (02/06/08 09:56), Enno Gottox Boland wrote: > To: dynamic window manager <[email protected]> > From: Enno Gottox Boland <[EMAIL PROTECTED]> > Subject: Re: [dwm] [patch] simplification to drawtext > Reply-To: dynamic window manager <[email protected]> > List-Id: dynamic window manager <dwm.suckless.org> > > whoops... > > memcpy(&buf[MAX(0, len - 3)], "...", MIN(3, len)); >
Still, this is not needed, as buf is ALWAYS greater than 3 bytes. So: memcpy(&buf[MAX(0, len - 3)], "...", 3); is sufficent, this was my thought when I wrote this memcpy variant. -Ph -- Premysl "Anydot" Hruby, http://www.redrum.cz/
