mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
bitkeeper revision 1.1159.258.76 (42490c5b3SVISdc-fROkhmb0BdgCvA)
Use fwrite() to write variable string in xfrd, to make it 64-bit safe. Signed-off-by: Jerone Young <jyoung5@us.ibm.com> Signed-off-by: Keir Fraser <keir@xensource.com>
This commit is contained in:
1 parent
9d44e5ae72
commit
2dc5f21f49
1 file changed
+3
-1
@@ -177,7 +177,9 @@ static CURL *curlinit(void){
|
||||
/** 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;
|
||||
}
|
||||
|
||||
|
||||