Changeset 401
- Timestamp:
- 03/12/06 12:03:19
- Files:
-
- openpgpsdk/trunk/src/packet-show.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
openpgpsdk/trunk/src/packet-show.c
r384 r401 312 312 } 313 313 314 // XXX: should this (and many others) be ops_boolean_t? 314 315 /*! generic function which adds text derived from single octet map to text */ 315 316 static unsigned int add_str_from_octet_map(ops_text_t *text,char *str, … … 325 326 { 326 327 /* value not recognised and there was a problem adding it to the unknown list */ 327 328 328 str=malloc(2+2+1); /* 2 for "0x", 2 for single octet in hex format, 1 for NULL */ 329 329 sprintf(str,"0x%x",octet); … … 348 348 { 349 349 /* value not recognised and there was a problem adding it to the unknown list */ 350 351 350 /* 2 chars of the string are the format definition, 352 351 this will be replaced in the output by 2 chars of hex,
