summaryrefslogtreecommitdiffstats
path: root/mkid.c
diff options
context:
space:
mode:
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;