From: H.G. Muller Date: Wed, 17 Nov 2010 12:38:00 +0000 (+0100) Subject: Fix safeStrCpy X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=cf7256e228782b533112473ff6977a72528e793a;p=xboard.git Fix safeStrCpy The test for when to terminate a non-fiting string was one off, and the debug message was written stdoutin stead of debugFP. --- diff --git a/backend.c b/backend.c index 0af00ea..6e544c0 100644 --- a/backend.c +++ b/backend.c @@ -318,11 +318,11 @@ safeStrCpy( char *dst, const char *src, size_t count ) assert( count > 0 ); for(i=0; i