diff --git a/sourcepawn/compiler/libpawnc.c b/sourcepawn/compiler/libpawnc.c index de30ac12..2751a284 100644 --- a/sourcepawn/compiler/libpawnc.c +++ b/sourcepawn/compiler/libpawnc.c @@ -185,7 +185,7 @@ void *pc_createsrc(char *filename) } src->pos = src->buffer; - src->end = src->buffer; + src->end = src->buffer + src->maxlength; return src; }