From: jacob Date: Thu, 9 Jun 2005 10:05:29 +0000 (+0000) Subject: "SanskritFritz" points out that digits at the start of RTF pastes were being X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/commitdiff_plain/fd64843f65a0d3c42de6af051c490af75a6b4862 "SanskritFritz" points out that digits at the start of RTF pastes were being eaten by the trailing "\f0" on the RTF preamble. The RTF spec (1.0 and 1.6) suggests that adding a space should defuse this situation and be otherwise harmless, and it works for me (Win98). git-svn-id: svn://svn.tartarus.org/sgt/putty@5931 cda61777-01e9-0310-a592-d414129be87e --- diff --git a/windows/window.c b/windows/window.c index 614808a9..a37ac488 100644 --- a/windows/window.c +++ b/windows/window.c @@ -4513,7 +4513,7 @@ void write_clip(void *frontend, wchar_t * data, int len, int must_deselect) rtfsize = 100 + strlen(cfg.font.name); rtf = snewn(rtfsize, char); - sprintf(rtf, "{\\rtf1\\ansi%d{\\fonttbl\\f0\\fmodern %s;}\\f0", + sprintf(rtf, "{\\rtf1\\ansi%d{\\fonttbl\\f0\\fmodern %s;}\\f0 ", GetACP(), cfg.font.name); rtflen = strlen(rtf);