[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: svn commit: rev 176 - trunk/subversion/libsvn_client

From: Branko ╚ibej <brane_at_xbc.nu>
Date: 2001-09-28 21:46:08 CEST

Ben Collins-Sussman wrote:

>brane@tigris.org writes:
>>Let's be careful out there.
>>* libsvn_client\auth.c (get_password): Use apr_psprintf. Windows
>>doesn't have snprintf.
>My FreeBSD man pages say sprintf and snprintf are both part of the
>standard C library, #include <stdio.h>. Are they *not* part of the
>ISO C standard?

snprintf is in C99, but not in C89. The Windows libc /does// /have
_snprintf, but it behaves somewhat strangely in that it won't
null-terminate your buffer the string is too long; it'll return a
negative value instead, and quietly let you run off the end of the
buffer if you don't check for that.

Anyway, what's APR for, if not for portability?

Brane ´┐Żibej   <brane_at_xbc.nu>            http://www.xbc.nu/brane/
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Oct 21 14:36:42 2006

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.