Patched to compile.
authorRyan C. Gordon <icculus@icculus.org>
Wed, 18 Feb 2009 08:30:34 -0500
changeset 650 9c91067da49d
parent 649 527cfe6f2d45
child 651 05ad72d120a5
Patched to compile.
mojoshader_preprocessor.c
--- a/mojoshader_preprocessor.c	Wed Feb 18 08:29:48 2009 -0500
+++ b/mojoshader_preprocessor.c	Wed Feb 18 08:30:34 2009 -0500
@@ -840,7 +840,7 @@
                 break;
 
             default:
-                cpy = Min(avail, (int) source->tokenlen);
+                cpy = Min(avail, (int) state->tokenlen);
                 if (cpy)
                     memcpy(ptr, state->token, cpy);
                 ptr += cpy;