diff options
Diffstat (limited to 'dev/plutil.c')
-rw-r--r-- | dev/plutil.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/dev/plutil.c b/dev/plutil.c index 208d7df..1c7b140 100644 --- a/dev/plutil.c +++ b/dev/plutil.c @@ -45,12 +45,19 @@ void print_nodes(bplist_node *root_node) { break; case BPLIST_STRING: - case BPLIST_DATA: - printf("String/data: "); + printf("String: "); fwrite(root_node->strval, sizeof(char), root_node->length, stdout); fflush(stdout); printf("\n"); break; + + case BPLIST_DATA: + printf("Data: "); + char* data = g_base64_encode(root_node->strval,root_node->length); + fwrite(format_string(data, 60, 0), sizeof(char), strlen(data), stdout); + fflush(stdout); + printf("\n"); + break; case BPLIST_UNICODE: printf("Unicode data, may appear crappy: "); |