[CMD]
[reactos.git] / reactos / base / shell / cmd / assoc.c
index 8acba1d..133785b 100644 (file)
@@ -80,7 +80,7 @@ PrintAssociation(LPTSTR extension)
 
     if (fileTypeLength != 0)   /* if there is a default key, display relevant information */
     {
-        ConOutPrintf(_T("%s=%s\r\n"), extension, fileType);
+        ConOutPrintf(_T("%s=%s\n"), extension, fileType);
     }
 
     if (fileTypeLength)
@@ -116,6 +116,7 @@ PrintAllAssociations()
         return -2;
     }
 
+    extLength++;
     extName = cmd_alloc(extLength * sizeof(TCHAR));
 
     for(keyCtr = 0; keyCtr < numKeys; keyCtr++)