ChangeSet 1.1810, 2005/03/29 09:05:47+01:00, kaf24@xxxxxxxxxxxxxxxxxxxx
Use fwrite() to write variable string in xfrd, to make it 64-bit safe.
Signed-off-by: Jerone Young <jyoung5@xxxxxxxxxx>
Signed-off-by: Keir Fraser <keir@xxxxxxxxxxxxx>
xen_domain.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletion(-)
diff -Nru a/tools/xfrd/xen_domain.c b/tools/xfrd/xen_domain.c
--- a/tools/xfrd/xen_domain.c 2005-03-29 04:06:17 -05:00
+++ b/tools/xfrd/xen_domain.c 2005-03-29 04:06:17 -05:00
@@ -177,7 +177,9 @@
/** Curl debug function.
*/
int curldebug(CURL *curl, curl_infotype ty, char *buf, size_t buf_n, void
*data){
- printf("%*s\n", buf_n, buf);
+ // printf("%*s\n", buf_n, buf); /* Does not compile correctly on non 32bit
platforms */
+ fwrite(data, buf_n, 1, stdout);
+ printf("\n");
return 0;
}
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|