Browse Source

* src/buffer.c (_write_volume_label): Fix typo, which prevented
`-V label -M' from working.

Sergey Poznyakoff 16 years ago
parent
commit
99e3a2604f
2 changed files with 6 additions and 1 deletions
  1. 5 0
      ChangeLog
  2. 1 1
      src/buffer.c

+ 5 - 0
ChangeLog

@@ -1,3 +1,8 @@
+2008-11-03  Sergey Poznyakoff  <[email protected]>
+
+	* src/buffer.c (_write_volume_label): Fix typo, which prevented
+	`-V label -M' from working.
+
 2008-10-30  Sergey Poznyakoff  <[email protected]>
 
 	* NEWS, configure.ac: Version 1.20.91

+ 1 - 1
src/buffer.c

@@ -1320,7 +1320,7 @@ _write_volume_label (const char *str)
 
       memset (label, 0, BLOCKSIZE);
 
-      strcpy (label->header.name, volume_label_option);
+      strcpy (label->header.name, str);
       assign_string (&current_stat_info.file_name,
                      label->header.name);
       current_stat_info.had_trailing_slash =