From: Wouter Wijngaards Date: Thu, 14 Oct 2010 13:20:10 +0000 (+0000) Subject: Fix, unit test and testbound work on windows Vista. X-Git-Tag: release-1.4.7rc1~34 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9fb312ec32647613eaabe029a2c21ec0cdb43c71;p=thirdparty%2Funbound.git Fix, unit test and testbound work on windows Vista. git-svn-id: file:///svn/unbound/trunk@2291 be551aaa-1e26-0410-a405-d3ace91eadb9 --- diff --git a/compat/ctime_r.c b/compat/ctime_r.c index bdc4baf3d..2594dc17e 100644 --- a/compat/ctime_r.c +++ b/compat/ctime_r.c @@ -32,8 +32,11 @@ char *ctime_r(const time_t *timep, char *buf) } lock_basic_lock(&ctime_lock); result = ctime(timep); - if(buf && result) + if(buf && result) { + if(strlen(result) > 10 && result[7]==' ' && result[8]=='0') + result[8]=' '; /* fix error in windows ctime */ strcpy(buf, result); + } lock_basic_unlock(&ctime_lock); return result; }