IBAN: Difference between revisions
Content added Content deleted
m (→{{header|Factor}}: slight simplification) |
m (Fixed Buffer Overflow. trans[sz+l]=0 is an out of bound access if trans is only sz+l big. Thus the +1) |
||
Line 534: | Line 534: | ||
/* Allocate space for the transformed IBAN. */ |
/* Allocate space for the transformed IBAN. */ |
||
trans = alloca(sz + l); |
trans = alloca(sz + l + 1); |
||
trans[sz + l] = 0; |
trans[sz + l] = 0; |
||