aboutsummaryrefslogtreecommitdiffstats
path: root/epan/oids.c
diff options
context:
space:
mode:
authoretxrab <etxrab@f5534014-38df-0310-8fa8-9805f1628bb7>2008-05-05 20:38:27 +0000
committeretxrab <etxrab@f5534014-38df-0310-8fa8-9805f1628bb7>2008-05-05 20:38:27 +0000
commit95b5d0ee4502ee1cb99010714668b4334752c55f (patch)
tree57c6602103931f306e7e7fdb4c736ebff9f7959b /epan/oids.c
parente0388e21b8046f77839cb278d160ae81f6cc7223 (diff)
Fix some of the Errors/warnings detected by checkapi,
make non ASCII char a warning for now. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@25240 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/oids.c')
-rw-r--r--epan/oids.c10
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;