[xar commit] r224 - trunk/xar/lib

1 view
Skip to first unread message

codesite...@google.com

unread,
Jan 29, 2009, 3:14:16 PM1/29/09
to xar-c...@googlegroups.com
Author: bbraun
Date: Thu Jan 29 12:13:20 2009
New Revision: 224

Modified:
trunk/xar/lib/ea.c

Log:
Correct a formatting string to use C99 format string for uint64_t.


Modified: trunk/xar/lib/ea.c
==============================================================================
--- trunk/xar/lib/ea.c (original)
+++ trunk/xar/lib/ea.c Thu Jan 29 12:13:20 2009
@@ -32,6 +32,7 @@
#include <string.h>
#include <assert.h>
#include <libgen.h>
+#include <inttypes.h>

#ifndef HAVE_ASPRINTF
#include "asprintf.h"
@@ -67,7 +68,7 @@
xar_prop_setvalue(XAR_EA(ret)->prop, NULL);
XAR_PROP(XAR_EA(ret)->prop)->attrs = xar_attr_new();
XAR_ATTR(XAR_PROP(XAR_EA(ret)->prop)->attrs)->key = strdup("id");
- asprintf((char
**)&XAR_ATTR(XAR_PROP(XAR_EA(ret)->prop)->attrs)->value, "%lld",
XAR_FILE(f)->nexteaid++);
+ asprintf((char
**)&XAR_ATTR(XAR_PROP(XAR_EA(ret)->prop)->attrs)->value, "%" PRIu64,
XAR_FILE(f)->nexteaid++);

xar_prop_pset(f, XAR_EA(ret)->prop, "name", name);

Reply all
Reply to author
Forward
0 new messages