depmod: Replace malloc+sprintf with asprintf
commitaf7949a945899b4751910e63d622c77a23068817
authorAlan Jenkins <alan-jenkins@tuffmail.co.uk>
Thu, 12 Mar 2009 11:43:04 +0000 (12 11:43 +0000)
committerAlan Jenkins <alan-jenkins@tuffmail.co.uk>
Thu, 12 Mar 2009 11:43:04 +0000 (12 11:43 +0000)
tree1e97132946e5845c9e9f5c66e7b2d00b78d5e888
parent54ebed395610e2bde3d3b08c35b9e163183303e4
depmod: Replace malloc+sprintf with asprintf

asprintf is simpler and less error-prone than malloc+sprintf, because
you don't have to work out how much memory to allocate.

Signed-off-by: Alan Jenkinss <alan-jenkins@tuffmail.co.uk>
depmod.c