From: ellson Date: Tue, 18 Oct 2005 21:10:00 +0000 (+0000) Subject: Fix bug 788 X-Git-Tag: LAST_LIBGRAPH~32^2~7079 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=48a9207631bd769669c995a544acc3eff6addc66;p=graphviz Fix bug 788 --- diff --git a/lib/common/shapes.c b/lib/common/shapes.c index ac9f535c5..dbda841d0 100644 --- a/lib/common/shapes.c +++ b/lib/common/shapes.c @@ -1917,7 +1917,7 @@ static shape_desc *user_shape(char *name) UserShape = ALLOC(N_UserShape, UserShape, shape_desc *); p = UserShape[i] = NEW(shape_desc); *p = Shapes[0]; - p->name = name; + p->name = strdup(name); p->usershape = TRUE; if (Lib == NULL && strcmp(name, "custom")) agerr(AGWARN, "using %s for unknown shape %s\n", Shapes[0].name,