make input buffer const, as it should be. fixes a warning.