summaryrefslogtreecommitdiff
path: root/util/buildrom
diff options
context:
space:
mode:
Diffstat (limited to 'util/buildrom')
-rw-r--r--util/buildrom/buildrom.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/util/buildrom/buildrom.c b/util/buildrom/buildrom.c
index 0de18f5db2..cdbb45d2d4 100644
--- a/util/buildrom/buildrom.c
+++ b/util/buildrom/buildrom.c
@@ -70,8 +70,9 @@ int main(int argc, char *argv[])
cp = malloc(romsize);
if (!cp)
fatal("malloc buffer");
- for (i = 0; i < romsize; i++)
+ for (i = 0; i < romsize; i++) {
cp[i] = zero;
+ }
/* read the input file in at the END of the array */
readlen = read(infd, &cp[romsize - inbuf.st_size], inbuf.st_size);