diff options
author | Anders Broman <anders.broman@ericsson.com> | 2008-05-05 20:38:27 +0000 |
---|---|---|
committer | Anders Broman <anders.broman@ericsson.com> | 2008-05-05 20:38:27 +0000 |
commit | 9cc9c92e75a6326c5cf786efff345de436b3530d (patch) | |
tree | 57c6602103931f306e7e7fdb4c736ebff9f7959b /epan/oids.c | |
parent | bf9ccab9cbc05ead599282575497385ea596b1d7 (diff) |
Fix some of the Errors/warnings detected by checkapi,
make non ASCII char a warning for now.
svn path=/trunk/; revision=25240
Diffstat (limited to 'epan/oids.c')
-rw-r--r-- | epan/oids.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/epan/oids.c b/epan/oids.c index 17b65983c7..eec4e91093 100644 --- a/epan/oids.c +++ b/epan/oids.c @@ -224,7 +224,7 @@ static GString* smi_errors; UAT_CSTRING_CB_DEF(smi_mod,name,smi_module_t) static void smi_error_handler(char *path, int line, int severity, char *msg, char *tag) { - g_string_sprintfa(smi_errors,"%s:%d %d %s %s\n", + g_string_append_printf(smi_errors,"%s:%d %d %s %s\n", path ? path : "-", line, severity, tag ? tag : "-", @@ -1071,16 +1071,16 @@ oid_get_default_mib_path(void) { #ifdef _WIN32 #define PATH_SEPARATOR ";" path = get_datafile_path("snmp\\mibs"); - g_string_sprintfa(path_str, "%s;", path); + g_string_append_printf(path_str, "%s;", path); g_free (path); path = get_persconffile_path("snmp\\mibs", FALSE, FALSE); - g_string_sprintfa(path_str, "%s", path); + g_string_append_printf(path_str, "%s", path); g_free (path); #else #define PATH_SEPARATOR ":" path = smiGetPath(); - g_string_sprintfa(path_str, "%s", path); + g_string_append_printf(path_str, "%s", path); free (path); #endif @@ -1088,7 +1088,7 @@ oid_get_default_mib_path(void) { if (!( smi_paths[i].name && *smi_paths[i].name)) continue; - g_string_sprintfa(path_str,PATH_SEPARATOR "%s",smi_paths[i].name); + g_string_append_printf(path_str,PATH_SEPARATOR "%s",smi_paths[i].name); } path_ret = path_str->str; |