[syslinux] [PATCH]some changes in linux/syslinux.c

liu Aleaxander aleaxander at gmail.com
Mon Mar 30 09:52:05 PDT 2009


hello. I found there are a few mistakes in linux/syslinux.c (hope i'm not
wrong  since it's my first patch).

diff --git a/linux/syslinux.c b/linux/syslinux.c
index 37a54fd..5d38e6f 100644
--- a/linux/syslinux.c
+++ b/linux/syslinux.c
@@ -316,7 +316,6 @@ void do_umount(const char *mntpath, int cookie)
 int main(int argc, char *argv[])
 {
   static unsigned char sectbuf[SECTOR_SIZE];
-  unsigned char *dp;
   const unsigned char *cdp;
   int dev_fd, fd;
   struct stat st;
@@ -498,7 +497,7 @@ int main(int argc, char *argv[])
       goto umount;
     }

-    dp += nb;
+    cdp += nb;
     left -= nb;
   }

-- 
regards
liu Aleaxander



More information about the Syslinux mailing list