--- a/hedgewars/uStore.pas Tue Feb 11 01:19:44 2014 +0400
+++ b/hedgewars/uStore.pas Tue Feb 11 22:05:03 2014 +0400
@@ -709,6 +709,9 @@
else
AddFileLog('OpenGL - "' + extension + '" failed to load');
{$ENDIF}
+
+{$ELSE} // pas2c part
+ glLoadExtension:= false;
{$ENDIF}
end;
--- a/project_files/hwc/rtl/misc.c Tue Feb 11 01:19:44 2014 +0400
+++ b/project_files/hwc/rtl/misc.c Tue Feb 11 22:05:03 2014 +0400
@@ -205,7 +205,7 @@
if(s->len == MAX_ANSISTRING_LENGTH)
--s->len;
- s->s[s->len] = 0;
+ s->s[s->len + 1] = 0;
return &s->s[1];
}