Procrustean assignment

Etymology
After the legendary highwayman Procrustes, who stretched or cut his victims to make them fit a bed.

Noun

 * 1)  A form of assignment to fixed-length string variables in which a shorter value is padded to the necessary length while a longer one is truncated.