Two cleanups of buffer LONG_MAX overflow hardening:

GCC optimizes out the overflow check due to the overflow check reyling on overflow; 
reimplement using type-based TYPE_MAX macro

Correct an accidental assignment-during-check that wasn't a bug, but was 
semantically incorrect and rightly triggered a compilation warning.


svn path=/trunk/ogg/; revision=17270
2 files changed