Fossil SCM
found the cause of the crash!!!!
Commit
27905725de26d284a8e1f630ae190060ee44fdbe
Parent
2b5d693495f8fae…
1 file changed
+1
-1
+1
-1
| --- src/file.c | ||
| +++ src/file.c | ||
| @@ -580,11 +580,11 @@ | ||
| 580 | 580 | #ifdef _WIN32 |
| 581 | 581 | char *zPwdUtf8; |
| 582 | 582 | int nPwd; |
| 583 | 583 | int i; |
| 584 | 584 | wchar_t zPwd[2000]; |
| 585 | - if( _wgetcwd(zPwd, sizeof(zPwd)-1)==0 ){ | |
| 585 | + if( _wgetcwd(zPwd, sizeof(zPwd)/sizeof(zPwd[0])-1)==0 ){ | |
| 586 | 586 | fossil_fatal("cannot find the current working directory."); |
| 587 | 587 | } |
| 588 | 588 | zPwdUtf8 = fossil_unicode_to_utf8(zPwd); |
| 589 | 589 | nPwd = strlen(zPwdUtf8); |
| 590 | 590 | if( nPwd > nBuf-1 ){ |
| 591 | 591 |
| --- src/file.c | |
| +++ src/file.c | |
| @@ -580,11 +580,11 @@ | |
| 580 | #ifdef _WIN32 |
| 581 | char *zPwdUtf8; |
| 582 | int nPwd; |
| 583 | int i; |
| 584 | wchar_t zPwd[2000]; |
| 585 | if( _wgetcwd(zPwd, sizeof(zPwd)-1)==0 ){ |
| 586 | fossil_fatal("cannot find the current working directory."); |
| 587 | } |
| 588 | zPwdUtf8 = fossil_unicode_to_utf8(zPwd); |
| 589 | nPwd = strlen(zPwdUtf8); |
| 590 | if( nPwd > nBuf-1 ){ |
| 591 |
| --- src/file.c | |
| +++ src/file.c | |
| @@ -580,11 +580,11 @@ | |
| 580 | #ifdef _WIN32 |
| 581 | char *zPwdUtf8; |
| 582 | int nPwd; |
| 583 | int i; |
| 584 | wchar_t zPwd[2000]; |
| 585 | if( _wgetcwd(zPwd, sizeof(zPwd)/sizeof(zPwd[0])-1)==0 ){ |
| 586 | fossil_fatal("cannot find the current working directory."); |
| 587 | } |
| 588 | zPwdUtf8 = fossil_unicode_to_utf8(zPwd); |
| 589 | nPwd = strlen(zPwdUtf8); |
| 590 | if( nPwd > nBuf-1 ){ |
| 591 |