summaryrefslogtreecommitdiffstats
path: root/mkid.c
diff options
context:
space:
mode:
authorGreg McGary <greg@mcgary.org>1997-04-18 06:36:13 +0000
committerGreg McGary <greg@mcgary.org>1997-04-18 06:36:13 +0000
commitf7fbb00cfa697cd1a47def573df65dd4d326c742 (patch)
treeeda6aec5ae8de93a0d90dfe3e05d0c09d0e4cb8b /mkid.c
parent9da09030255feafece5f9d87617a64d5c66ede6f (diff)
downloadidutils-f7fbb00cfa697cd1a47def573df65dd4d326c742.tar.gz
idutils-f7fbb00cfa697cd1a47def573df65dd4d326c742.tar.bz2
idutils-f7fbb00cfa697cd1a47def573df65dd4d326c742.zip
imported from mkid-3.0.5r3_0_5
Diffstat (limited to 'mkid.c')
-rw-r--r--mkid.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/mkid.c b/mkid.c
index e6880cd..551f969 100644
--- a/mkid.c
+++ b/mkid.c
@@ -560,7 +560,8 @@ write_idfile (char const *file_name, struct idarg *idarg)
filerr ("create", file_name);
exit (1);
}
- strncpy (idh.idh_magic, IDH_MAGIC, sizeof (idh.idh_magic));
+ idh.idh_magic[0] = IDH_MAGIC_0;
+ idh.idh_magic[1] = IDH_MAGIC_1;
idh.idh_version = IDH_VERSION;
idh.idh_pad_1 = 0;
idh.idh_flags = IDH_COUNTS;