X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=xscreensaver;a=blobdiff_plain;f=driver%2Fmlstring.c;h=fdba1ee5d08cc7c9b424ddf7ab9b921faadd2e02;hp=d6df8443d2c610a895b140f86aad787224aaac8f;hb=f0261d8acab611f3433160e4f07367b870439739;hpb=7b34ef992563d7bcbb64cc5597dc45fa24470b05 diff --git a/driver/mlstring.c b/driver/mlstring.c index d6df8443..fdba1ee5 100644 --- a/driver/mlstring.c +++ b/driver/mlstring.c @@ -2,7 +2,7 @@ * (c) 2007, Quest Software, Inc. All rights reserved. * * This file is part of XScreenSaver, - * Copyright (c) 1993-2004 Jamie Zawinski + * Copyright (c) 1993-2009 Jamie Zawinski * * Permission to use, copy, modify, distribute, and sell this software and its * documentation for any purpose is hereby granted without fee, provided that @@ -153,6 +153,8 @@ mlstring_wrap(mlstring *mstring, XFontStruct *font, Dimension width) if (wrap_at == -1) /* No space found, hard wrap */ wrap_at = line_length; + else + wrap_at++; /* Leave the space at the end of the line. */ newml = calloc(1, sizeof(*newml)); if (!newml) /* OOM, don't bother trying to wrap */