Skip to content

Commit 6f363cf

Browse files
committed
fixes
1 parent d729ad4 commit 6f363cf

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

ppathstatus.c

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1145,7 +1145,7 @@ static psync_path_status_t psync_path_status_sync(const char *path, size_t path_
11451145
res=psync_sql_query_nolock("SELECT id FROM localfolder WHERE syncid=? AND localparentfolderid=? AND name=?");
11461146
psync_sql_bind_uint(res, 1, syncid);
11471147
psync_sql_bind_uint(res, 2, extract_localfolderid(folderid));
1148-
psync_sql_bind_lstring(res, 2, path+poff, off-poff);
1148+
psync_sql_bind_lstring(res, 3, path+poff, off-poff);
11491149
row=psync_sql_fetch_rowint(res);
11501150
if (!row) {
11511151
psync_sql_free_result(res);
@@ -1202,8 +1202,7 @@ static psync_path_status_t psync_path_status_sync(const char *path, size_t path_
12021202
res=psync_sql_query_nolock("SELECT id FROM localfolder WHERE syncid=? AND localparentfolderid=? AND name=?");
12031203
psync_sql_bind_uint(res, 1, syncid);
12041204
psync_sql_bind_uint(res, 2, extract_localfolderid(folderid));
1205-
psync_sql_bind_lstring(res, 2, path+poff, path_len-poff);
1206-
row=psync_sql_fetch_rowint(res);
1205+
psync_sql_bind_lstring(res, 3, path+poff, path_len-poff);
12071206
if ((row=psync_sql_fetch_rowint(res))) {
12081207
folderid=row[0];
12091208
psync_sql_free_result(res);
@@ -1228,7 +1227,7 @@ static psync_path_status_t psync_path_status_sync(const char *path, size_t path_
12281227
res=psync_sql_query_nolock("SELECT id FROM localfile WHERE syncid=? AND localparentfolderid=? AND name=?");
12291228
psync_sql_bind_uint(res, 1, syncid);
12301229
psync_sql_bind_uint(res, 2, extract_localfolderid(folderid));
1231-
psync_sql_bind_lstring(res, 2, path+poff, path_len-poff);
1230+
psync_sql_bind_lstring(res, 3, path+poff, path_len-poff);
12321231
if ((row=psync_sql_fetch_rowint(res))) {
12331232
flags=row[0];
12341233
psync_sql_free_result(res);

0 commit comments

Comments
 (0)