info.filename should be null-teminated string