Fossil SCM
Fix an off-by-one error in stash_add_file_or_dir. Windows only. Ticket [d6132e4d66a7c994f9].
Commit
abdedb21da0e2c8df754393f62f0a36a947b404a
Parent
13d3cad50c52037…
1 file changed
+1
-1
+1
-1
| --- src/stash.c | ||
| +++ src/stash.c | ||
| @@ -93,11 +93,11 @@ | ||
| 93 | 93 | |
| 94 | 94 | db_bind_int(&ins, ":rid", rid); |
| 95 | 95 | db_bind_int(&ins, ":isadd", rid==0); |
| 96 | 96 | db_bind_int(&ins, ":isrm", deleted); |
| 97 | 97 | #ifdef _WIN32 |
| 98 | - db_bind_int(&ins, ":isexe", db_column_int(&q, 2)); | |
| 98 | + db_bind_int(&ins, ":isexe", db_column_int(&q, 1)); | |
| 99 | 99 | #endif |
| 100 | 100 | db_bind_text(&ins, ":orig", zOrig); |
| 101 | 101 | db_bind_text(&ins, ":new", zName); |
| 102 | 102 | if( rid==0 ){ |
| 103 | 103 | /* A new file */ |
| 104 | 104 |
| --- src/stash.c | |
| +++ src/stash.c | |
| @@ -93,11 +93,11 @@ | |
| 93 | |
| 94 | db_bind_int(&ins, ":rid", rid); |
| 95 | db_bind_int(&ins, ":isadd", rid==0); |
| 96 | db_bind_int(&ins, ":isrm", deleted); |
| 97 | #ifdef _WIN32 |
| 98 | db_bind_int(&ins, ":isexe", db_column_int(&q, 2)); |
| 99 | #endif |
| 100 | db_bind_text(&ins, ":orig", zOrig); |
| 101 | db_bind_text(&ins, ":new", zName); |
| 102 | if( rid==0 ){ |
| 103 | /* A new file */ |
| 104 |
| --- src/stash.c | |
| +++ src/stash.c | |
| @@ -93,11 +93,11 @@ | |
| 93 | |
| 94 | db_bind_int(&ins, ":rid", rid); |
| 95 | db_bind_int(&ins, ":isadd", rid==0); |
| 96 | db_bind_int(&ins, ":isrm", deleted); |
| 97 | #ifdef _WIN32 |
| 98 | db_bind_int(&ins, ":isexe", db_column_int(&q, 1)); |
| 99 | #endif |
| 100 | db_bind_text(&ins, ":orig", zOrig); |
| 101 | db_bind_text(&ins, ":new", zName); |
| 102 | if( rid==0 ){ |
| 103 | /* A new file */ |
| 104 |