Fix for the read() function. The arguments are now properly sent to generate().
Authored by: bugman 2009-10-06
Parent: [r9593]
Child: [r9595]