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:
kaf24@firebug.cl.cam.ac.uk committed 2005-03-29 08:05:47 +00:00
1 parent 9d44e5ae72
commit 2dc5f21f49
1 file changed
+3 -1
+3 -1
View File
@@ -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;
}
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.