summaryrefslogtreecommitdiff
path: root/fluid/code.cxx
diff options
context:
space:
mode:
authorBill Spitzak <spitzak@gmail.com>2000-06-16 07:08:16 +0000
committerBill Spitzak <spitzak@gmail.com>2000-06-16 07:08:16 +0000
commit084b19e305eccead76c2322d1533af526684ed6b (patch)
tree5c1e0698552bd07666e0c58cef2c23d8d5493695 /fluid/code.cxx
parent4ab82443bd55b96f7db233e47b94338f70c01238 (diff)
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
Diffstat (limited to 'fluid/code.cxx')
-rw-r--r--fluid/code.cxx6
1 files changed, 3 insertions, 3 deletions
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 $".
//