Date: Sat, 16 Sep 1995 18:22:06 -0700 From: Josh MacDonald <jmacd@cory.EECS.Berkeley.EDU> To: freebsd-hackers@freebsd.org Subject: 64 bit off_t and varargs/printf Message-ID: <199509170122.SAA12369@cory.EECS.Berkeley.EDU>
next in thread | raw e-mail | index | archive | help
I'm working on porting rdist-6.1 to FreeBSD. Its been a pain, because, for reasons I have not been able to determine, it is puking on a vsprintf() call with off_t's involved. I wondered if anyone else has experienced this problem. I'm really clueless about var_args and for me to debug this would require a lot of research. I remember a discussion perhaps 6 months ago about a bug in wu-ftpd that was related to the off_t size, though I don't remember the conclusions made. Basically, a call like this: char num[10]; num = "1234" off_t size; size = strtoq(num, &num, 10); printf("%d\n", size); is causing it troubles. Replacing the off_t type with a long fixes things. Anyone know what might be happening? -josh
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199509170122.SAA12369>