Buffer size handling fix for enc.

PR:1374
1 file changed