projects
/
b43-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add generated files to .gitignore
[b43-tools.git]
/
assembler
/
initvals.c
diff --git
a/assembler/initvals.c
b/assembler/initvals.c
index eb39d73fd11ecb39cc983ccaeb7ffd5b32efd601..b40356380e1d7e1ade274ed630937d0f4f112a03 100644
(file)
--- a/
assembler/initvals.c
+++ b/
assembler/initvals.c
@@
-283,9
+283,9
@@
static void emit_ival_section(struct ivals_context *ctx)
hdr.ver = FW_HDR_VER;
hdr.size = cpu_to_be32(ctx->ivals_count);
hdr.ver = FW_HDR_VER;
hdr.size = cpu_to_be32(ctx->ivals_count);
- fn_len = strlen(
outfile_name) + 512
;
+ fn_len = strlen(
ctx->sect->name) + strlen(initvals_fn_extension ? : "") + 1
;
fn = xmalloc(fn_len);
fn = xmalloc(fn_len);
- snprintf(fn, fn_len, "%s
.%s.initvals", outfile_name, ctx->sect->name
);
+ snprintf(fn, fn_len, "%s
%s", ctx->sect->name, initvals_fn_extension ? : ""
);
fd = fopen(fn, "w+");
if (!fd) {
fprintf(stderr, "Could not open initval output file \"%s\"\n", fn);
fd = fopen(fn, "w+");
if (!fd) {
fprintf(stderr, "Could not open initval output file \"%s\"\n", fn);