From 17b9c6364fb080d920d7f5c82782b84da816a9bd Mon Sep 17 00:00:00 2001 From: div0 Date: Wed, 23 Aug 2006 08:59:52 +0000 Subject: [PATCH] attempt to fix "backslash at end of line" bug git-svn-id: svn://svn.icculus.org/nexuiz/trunk@1848 f962a42d-fe04-0410-a3ab-8c8b0445ebaa --- data/qcsrc/common/util.qc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/data/qcsrc/common/util.qc b/data/qcsrc/common/util.qc index a8b1459e4..e614aba0f 100644 --- a/data/qcsrc/common/util.qc +++ b/data/qcsrc/common/util.qc @@ -31,7 +31,8 @@ string wordwrap(string s, float l) if (c == " ") break; if (c == "\\") - break; + if(j+1 < strlen(s)) + break; // we need to keep this tempstring alive even if substring is // called repeatedly, so call strcat even though we're not // doing anything -- 2.39.2