fix, PEBKAC, heed actual buffer boundary in glep_gr()

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
Merge branch 'core/glep'

* core/glep:
  fix, PEBKAC, heed actual buffer boundary in glep_gr()