From 084b19e305eccead76c2322d1533af526684ed6b Mon Sep 17 00:00:00 2001 From: Bill Spitzak Date: Fri, 16 Jun 2000 07:08:16 +0000 Subject: Patch from Dmitry Potapov for fluid to not crash on (I think) identifiers with trailing whitespace. Fluid can now read in .xpm files with more than 2048 lines in them. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1213 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- fluid/code.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'fluid/code.cxx') diff --git a/fluid/code.cxx b/fluid/code.cxx index af2ad71e6..49dfe3743 100644 --- a/fluid/code.cxx +++ b/fluid/code.cxx @@ -1,5 +1,5 @@ // -// "$Id: code.cxx,v 1.9.2.7 2000/06/05 21:20:42 mike Exp $" +// "$Id: code.cxx,v 1.9.2.8 2000/06/16 07:08:16 bill Exp $" // // Code output routines for the Fast Light Tool Kit (FLTK). // @@ -76,7 +76,7 @@ const char* unique_id(void* o, const char* type, const char* name, const char* l const char* n = name; if (!n || !*n) n = label; if (n && *n) { - while (!is_id(*n)) n++; + while (*n && !is_id(*n)) n++; while (is_id(*n)) *q++ = *n++; } *q = 0; @@ -405,5 +405,5 @@ void Fl_Type::write_code1() { void Fl_Type::write_code2() {} // -// End of "$Id: code.cxx,v 1.9.2.7 2000/06/05 21:20:42 mike Exp $". +// End of "$Id: code.cxx,v 1.9.2.8 2000/06/16 07:08:16 bill Exp $". // -- cgit v1.2.3