diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libpam.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libpam.c b/lib/libpam.c index e126f448..0afe65c0 100644 --- a/lib/libpam.c +++ b/lib/libpam.c @@ -769,7 +769,7 @@ pnm_bytespersample(sample const maxval) { unsigned int i; sample a; - for (i = 0, a = maxval; i < sizeof(maxval); ++i) { + for (i = 0, a = maxval; i <= sizeof(maxval); ++i) { if (a == 0) return i; a >>= 8; |