diff options
author | Luis Ontanon <luis.ontanon@gmail.com> | 2006-03-07 05:24:02 +0000 |
---|---|---|
committer | Luis Ontanon <luis.ontanon@gmail.com> | 2006-03-07 05:24:02 +0000 |
commit | 95b2d64a36ffac8eabcad33fdc834dc770dcd795 (patch) | |
tree | 74e49c59a24c605a760576f0fc4172848e66efb7 /epan | |
parent | e83301935d27fe600966ac759edbd74a0586402b (diff) |
ep_strdup stack buffer before returning it.
fixes coverity error 109.
svn path=/trunk/; revision=17489
Diffstat (limited to 'epan')
-rw-r--r-- | epan/asn1.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/asn1.c b/epan/asn1.c index 299ab537b7..f8946a7d72 100644 --- a/epan/asn1.c +++ b/epan/asn1.c @@ -1077,7 +1077,7 @@ asn1_err_to_str(int err) default: g_snprintf(errstrbuf, sizeof errstrbuf, "Unknown error (%d)", err); - errstr = errstrbuf; + errstr = ep_strdup(errstrbuf); break; } return errstr; |