OSDN Git Service
(root)
/
hengband
/
hengband.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7631107
)
直接'\0'を書く方法ではバッファをオーバーする可能性があるので、buf_appendを使うようにした。
author
habu
<habu@0568b783-4c39-0410-ac80-bf13821ea2a2>
Sat, 26 Jan 2002 01:39:20 +0000
(
01:39
+0000)
committer
habu
<habu@0568b783-4c39-0410-ac80-bf13821ea2a2>
Sat, 26 Jan 2002 01:39:20 +0000
(
01:39
+0000)
src/report.c
patch
|
blob
|
history
diff --git
a/src/report.c
b/src/report.c
index
04b1575
..
36099ec
100644
(file)
--- a/
src/report.c
+++ b/
src/report.c
@@
-331,7
+331,7
@@
cptr make_screen_dump(void)
}
/* Terminate string */
-
screen_buf->data[screen_buf->size] = '\0'
;
+
buf_append(screen_buf, "", 1)
;
ret = string_make(screen_buf->data);