projects
/
fdkaac.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
7259767
)
fix warning: cast size_t as sprintf() arg to int
author
nu774
<honeycomb77@gmail.com>
Tue, 29 Oct 2013 10:32:54 +0000
(19:32 +0900)
committer
nu774
<honeycomb77@gmail.com>
Tue, 29 Oct 2013 10:36:22 +0000
(19:36 +0900)
src/main.c
patch
|
blob
|
blame
|
history
diff --git
a/src/main.c
b/src/main.c
index 5fe46adb791cb5d65dfdeb4266e493d8ab4bbccd..0d076907631df6f8b76c5589350594120db7988e 100644
(file)
--- a/
src/main.c
+++ b/
src/main.c
@@
-607,7
+607,7
@@
char *generate_output_filename(const char *filename, const char *ext)
const char *ext_org = strrchr(base, '.');
if (ext_org) ilen = ext_org - base;
p = malloc(ilen + ext_len + 1);
const char *ext_org = strrchr(base, '.');
if (ext_org) ilen = ext_org - base;
p = malloc(ilen + ext_len + 1);
- sprintf(p, "%.*s%s", ilen, base, ext);
+ sprintf(p, "%.*s%s",
(int)
ilen, base, ext);
}
return p;
}
}
return p;
}
This page took
0.011752 seconds
and
4
git commands to generate.