diff --git a/gldcore/load.cpp b/gldcore/load.cpp index 552fa73d2..b17900bea 100755 --- a/gldcore/load.cpp +++ b/gldcore/load.cpp @@ -8029,7 +8029,7 @@ int GldLoader::process_macro(char *line, int size, char *_filename, int linenum) { int xc; char cmd[1024]; - if ( sscanf(line+8,"%d %1023[^\n]",&xc,cmd) < 2 ) + if ( sscanf(line+8,"%d %1023[^\r\n]",&xc,cmd) < 2 ) { syntax_error(filename,linenum,"#on_exit syntax error"); return FALSE;