remalloc packets before padding to ensure not overwriting memory - close...

...s #80