Fixes in GSWUtil.c and GSWAppRequest.c

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@21022 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Manuel Guesdon 2005-03-31 18:31:22 +00:00
parent fd776a6c94
commit bd0b6fe391
3 changed files with 16 additions and 7 deletions

View file

@ -1,3 +1,10 @@
2005-03-22 Manuel Guesdon <mguesdon@orange-concept.com>
* GSWAdaptors/common/GSWUtil.c:
o fix in GSWTime_format
* GSWAdaptors/common/GSWAppRequest.c:
o fix in GSWAppRequest_HandleRequest for instance
search in URL/cookie
2005-03-31 David Ayers <d.ayers@inode.at>
* GSWAdaptors/common/GSWHTTPResponse.c

View file

@ -1,5 +1,5 @@
/* GSWAppRequest.c - GSWeb: Adaptors: App Request
Copyright (C) 1999, 2000, 2001, 2003-2004 Free Software Foundation, Inc.
Copyright (C) 1999, 2000, 2001, 2003-2005 Free Software Foundation, Inc.
Written by: Manuel Guesdon <mguesdon@orange-concept.com>
Date: July 1999
@ -378,9 +378,11 @@ GSWAppRequest_HandleRequest(GSWHTTPRequest **p_ppHTTPRequest,
{
stAppRequest.iInstance =
atoi(p_pURLComponents->stAppNumber.pszStart);
}
// In Cookie ?
else
};
// Any instance or not yet found instance ?
// Search in cookie
if (stAppRequest.iInstance<=0)
{
CONST char *pszCookie=
GSWHTTPRequest_HeaderForKey(*p_ppHTTPRequest,

View file

@ -115,9 +115,9 @@ char* GSWTime_format(char *date_str,GSWTime t)
date_str[17] = stTM.tm_sec / 10 + '0';
date_str[18] = stTM.tm_sec % 10 + '0';
date_str[19] = '.';
date_str[20] = (timeMSecPart/1000) / 100 + '0';
date_str[21] = ((timeMSecPart/1000) % 100) / 10 + '0';
date_str[22] = (timeMSecPart/1000) % 10 + '0';
date_str[20] = timeMSecPart / 100 + '0';
date_str[21] = (timeMSecPart % 100) / 10 + '0';
date_str[22] = timeMSecPart % 10 + '0';
date_str[23] = 0;
return date_str;