aboutsummaryrefslogtreecommitdiffstats
path: root/wiretap/erf.c
diff options
context:
space:
mode:
authorMichael Mann <mmann78@netscape.net>2016-06-05 22:24:47 -0400
committerJaap Keuter <jaap.keuter@xs4all.nl>2016-06-06 06:03:58 +0000
commit57ef06e242dbbce390547d9711f810fc60829219 (patch)
treeeaadf36f96023dd59c3fd56565bf6e14c9e57431 /wiretap/erf.c
parent6333b98ea6f7733b150537cbba6f80f3e2d83d43 (diff)
*_stdup_printf -> strdup for "single string only" formatting.
Done for performance improvements. This could probably be done in checkAPIs.pl, but this was just a quick manual check with grepping. Change-Id: I91ff102cb528bb00fa2f65489de53890e7e46f2d Reviewed-on: https://code.wireshark.org/review/15751 Reviewed-by: Michael Mann <mmann78@netscape.net> Petri-Dish: Michael Mann <mmann78@netscape.net> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Jaap Keuter <jaap.keuter@xs4all.nl>
Diffstat (limited to 'wiretap/erf.c')
-rw-r--r--wiretap/erf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/wiretap/erf.c b/wiretap/erf.c
index b31562b0f5..04a1bb5be8 100644
--- a/wiretap/erf.c
+++ b/wiretap/erf.c
@@ -520,7 +520,7 @@ static gboolean erf_read_header(wtap *wth, FILE_T fh,
/* If this isn't a pad record, it's a corrupt packet; bail out */
if ((erf_header->type & 0x7F) != ERF_TYPE_PAD) {
*err = WTAP_ERR_BAD_FILE;
- *err_info = g_strdup_printf("erf: File has 0 byte packet");
+ *err_info = g_strdup("erf: File has 0 byte packet");
return FALSE;
}