Generalized scaling in nonscaling diffusion