[PATCH] dwrite: Add check for pass parameters of create_trimmingsign() to prevent crash.