.FN_BODY text gets printf-style expansion done on it, so format strings

in the code have to have %'s escaped.  Do so.

svn path=/trunk/; revision=16260
This commit is contained in:
Guy Harris 2005-10-18 00:07:49 +00:00
parent 7f33a96ea9
commit 6e759b47f2
4 changed files with 4 additions and 4 deletions

View File

@ -85,7 +85,7 @@ ACRQ-apdu/aSO-context-name aCRQ_aSO_context_name
/* look up the indirect reference */
if((oid = find_oid_by_pres_ctx_id(pinfo, indir_ref)) != NULL) {
g_snprintf(object_identifier_id, MAX_OID_STR_LEN, "%s", oid);
g_snprintf(object_identifier_id, MAX_OID_STR_LEN, "%%s", oid);
}
if(session)

View File

@ -100,7 +100,7 @@ EXTERNAL
/* look up the indirect reference */
if((oid = find_oid_by_pres_ctx_id(pinfo, indir_ref)) != NULL) {
g_snprintf(object_identifier_id, MAX_OID_STR_LEN, "%s", oid);
g_snprintf(object_identifier_id, MAX_OID_STR_LEN, "%%s", oid);
}

View File

@ -330,7 +330,7 @@ dissect_acse_T_indirect_reference(gboolean implicit_tag _U_, tvbuff_t *tvb, int
/* look up the indirect reference */
if((oid = find_oid_by_pres_ctx_id(pinfo, indir_ref)) != NULL) {
g_snprintf(object_identifier_id, MAX_OID_STR_LEN, "{'DEFAULT_BODY': ' offset = dissect_ber_integer(implicit_tag, pinfo, tree, tvb, offset, hf_index,\n NULL);\n', 'VAL_PTR': 'NULL', 'TREE': 'tree', 'FN_VARIANT': '', 'HF_INDEX': 'hf_index', 'PINFO': 'pinfo', 'CREATED_ITEM_PTR': 'NULL', 'OFFSET': 'offset', 'TNAME': 'T_indirect_reference', 'ER': 'ber', 'IMPLICIT_TAG': 'implicit_tag', 'TVB': 'tvb'}", oid);
g_snprintf(object_identifier_id, MAX_OID_STR_LEN, "%s", oid);
}
if(session)

View File

@ -662,7 +662,7 @@ dissect_rtse_T_indirect_reference(gboolean implicit_tag _U_, tvbuff_t *tvb, int
/* look up the indirect reference */
if((oid = find_oid_by_pres_ctx_id(pinfo, indir_ref)) != NULL) {
g_snprintf(object_identifier_id, MAX_OID_STR_LEN, "{'FN_VARIANT': '', 'VAL_PTR': 'NULL', 'TREE': 'tree', 'DEFAULT_BODY': ' offset = dissect_ber_integer(implicit_tag, pinfo, tree, tvb, offset, hf_index,\n NULL);\n', 'HF_INDEX': 'hf_index', 'PINFO': 'pinfo', 'CREATED_ITEM_PTR': 'NULL', 'OFFSET': 'offset', 'TNAME': 'T_indirect_reference', 'TVB': 'tvb', 'IMPLICIT_TAG': 'implicit_tag', 'ER': 'ber'}", oid);
g_snprintf(object_identifier_id, MAX_OID_STR_LEN, "%s", oid);
}