hermet pushed a commit to branch master. http://git.enlightenment.org/tools/enventor.git/commit/?id=58f08915e9a47c944dd2352f14666f22d9666aee
commit 58f08915e9a47c944dd2352f14666f22d9666aee Author: taehyub <taehyub....@samsung.com> Date: Mon Mar 7 20:28:27 2016 +0900 edc_editor: change sprintf to snprintf Summary: change sprintf to snprintf for code safety Reviewers: Jaehyun_Cho, NikaWhite, Hermet Reviewed By: Hermet Differential Revision: https://phab.enlightenment.org/D3774 --- src/lib/edc_editor.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/edc_editor.c b/src/lib/edc_editor.c index af96fbc..8811169 100644 --- a/src/lib/edc_editor.c +++ b/src/lib/edc_editor.c @@ -1055,7 +1055,7 @@ edit_edc_load(edit_data *ed, const char *file_path) //Use line_num given by indent_text_create(). while (num <= line_num) { - sprintf(buf, "\n%d", num); + snprintf(buf, sizeof(buf), "\n%d", num); if (!eina_strbuf_append(strbuf_line, buf)) goto err; num++; } @@ -1068,7 +1068,7 @@ edit_edc_load(edit_data *ed, const char *file_path) { line_num++; ++p; - sprintf(buf, "\n%d", line_num); + snprintf(buf, sizeof(buf), "\n%d", line_num); if (!eina_strbuf_append(strbuf_line, buf)) goto err; } } --