Skip to content
Browse files

Fix double forward slashes in changed paths

  • Loading branch information...
1 parent b72f4ba commit 751bf06c326d4047b7b98534f1a0d38987a309ec @Maher4Ever committed Jul 16, 2012
Showing with 1 addition and 2 deletions.
  1. +1 −2 ext/wdm/rb_change.c
View
3 ext/wdm/rb_change.c
@@ -61,12 +61,11 @@ extract_absolute_path_from_notification(const LPWSTR base_dir, const PFILE_NOTIF
WDM_WDEBUG("change in: '%s'", buffer);
- absolute_filepath_len = wcslen(base_dir) + 1 + filename_len;
+ absolute_filepath_len = wcslen(base_dir) + filename_len;
absolute_filepath = ALLOCA_N(WCHAR, absolute_filepath_len + 1); // 1 for NULL
absolute_filepath[0] = L'\0';
wcscat(absolute_filepath, base_dir);
- wcscat(absolute_filepath, L"\\");
wcscat(absolute_filepath, buffer);
WDM_WDEBUG("absolute path is: '%s'", absolute_filepath);

0 comments on commit 751bf06

Please sign in to comment.
Something went wrong with that request. Please try again.