Patch from Scott McKellar to repair srfsh buffer overflow: