--- trunk/reactos/subsys/system/explorer/explorer.cpp 2005-09-19 23:00:25 UTC (rev 17938)
+++ trunk/reactos/subsys/system/explorer/explorer.cpp 2005-09-20 07:37:45 UTC (rev 17939)
@@ -230,8 +230,7 @@
if (type._neverShowExt && !dont_hide_ext) {
int len = ext - entry->_data.cFileName;
entry->_display_name = (LPTSTR) malloc((len+1)*sizeof(TCHAR));
- lstrcpyn(entry->_display_name, entry->_data.cFileName, len);
- entry->_display_name[len] = TEXT('\0');
+ lstrcpyn(entry->_display_name, entry->_data.cFileName, len + 1);
}
if (is_exe_file(ext))