add release date and fix linux dir warnings
This commit is contained in:
parent
27d35d50cc
commit
d7cf75748a
2
README
2
README
@ -34,7 +34,7 @@ before calling SSL_new(); Though it's not recommended.
|
||||
|
||||
*** end Note ***
|
||||
|
||||
CyaSSL Release 2.0.0rc3 (x/x/2011)
|
||||
CyaSSL Release 2.0.0rc3 (9/28/2011)
|
||||
|
||||
Release 2.0.0rc3 for CyaSSL has bug fixes and a few new features including:
|
||||
- updated autoconf support
|
||||
|
@ -649,7 +649,8 @@ static INLINE void ChangeDirBack(int x)
|
||||
else
|
||||
strncpy(path, "./", MAX_PATH);
|
||||
|
||||
chdir(path);
|
||||
if (chdir(path) < 0)
|
||||
printf("chdir to %s failed\n", path);
|
||||
}
|
||||
|
||||
/* does current dir contain str */
|
||||
@ -657,7 +658,10 @@ static INLINE int CurrentDir(const char* str)
|
||||
{
|
||||
char path[MAX_PATH];
|
||||
|
||||
getcwd(path, sizeof(path));
|
||||
if (getcwd(path, sizeof(path)) == NULL) {
|
||||
printf("no current dir?\n");
|
||||
return 0;
|
||||
}
|
||||
if (strstr(path, str))
|
||||
return 1;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user