mojoshader_preprocessor.c
changeset 650 9c91067da49d
parent 649 527cfe6f2d45
child 652 3333a0774ccc
--- 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;