diff lib/mountlist.c @ 14056:602afdb74dc3

mountlist: tweak previous commit * lib/mountlist.c (me_remote): Guarantee trailing backslash. Reported by Paul Eggert. Signed-off-by: Eric Blake <eblake@redhat.com>
author Eric Blake <eblake@redhat.com>
date Wed, 29 Dec 2010 15:53:15 -0700
parents b968dd130aed
children 97fc9a21a8fb
line wrap: on
line diff
--- a/lib/mountlist.c
+++ b/lib/mountlist.c
@@ -166,7 +166,8 @@
 {
   if (fs_name[0] && fs_name[1] == ':')
     {
-      char const drive[3] = { fs_name[0], ':', '\0' };
+      char drive[4];
+      sprintf (drive, "%c:\\", fs_name[0]);
       switch (GetDriveType (drive))
         {
         case DRIVE_REMOVABLE: