[or-cvs] Add missing arg to windows tor_listdir()
Nick Mathewson
nickm at seul.org
Fri Sep 9 21:35:01 UTC 2005
Update of /home/or/cvsroot/tor/src/common
In directory moria:/tmp/cvs-serv27087/src/common
Modified Files:
util.c
Log Message:
Add missing arg to windows tor_listdir()
Index: util.c
===================================================================
RCS file: /home/or/cvsroot/tor/src/common/util.c,v
retrieving revision 1.220
retrieving revision 1.221
diff -u -d -r1.220 -r1.221
--- util.c 9 Sep 2005 21:29:23 -0000 1.220
+++ util.c 9 Sep 2005 21:34:59 -0000 1.221
@@ -1139,7 +1139,7 @@
}
result = smartlist_create();
while (1) {
- smartlist_add(findData.cFileName);
+ smartlist_add(result, findData.cFileName);
if (!FindNextFile(handle, &findData)) {
if (GetLastError() != ERROR_NO_MORE_FILES) {
log_fn(LOG_WARN, "Error reading directory.");
More information about the tor-commits
mailing list