From c680adba74e2d47a9a9fc2fe4b4100cac66092b7 Mon Sep 17 00:00:00 2001 From: Martin Pycko Date: Sun, 8 Jun 2003 16:26:08 +0000 Subject: [PATCH] Fix the segfault in get_calleridname if the From: string starts with " input) end--; - strncpy(output,input,(int)(end-input)); + if (end > input) + strncpy(output,input,(int)(end-input)); + else + output = NULL; } return output; }