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:
9ff0ad7
)
スクリーンダンプのバッファの長さを計る方法を変更。
author
habu
<habu@0568b783-4c39-0410-ac80-bf13821ea2a2>
Fri, 25 Jan 2002 20:21:21 +0000
(20:21 +0000)
committer
habu
<habu@0568b783-4c39-0410-ac80-bf13821ea2a2>
Fri, 25 Jan 2002 20:21:21 +0000
(20:21 +0000)
src/cmd4.c
patch
|
blob
|
history
diff --git
a/src/cmd4.c
b/src/cmd4.c
index
10b9613
..
5b119e5
100644
(file)
--- a/
src/cmd4.c
+++ b/
src/cmd4.c
@@
-5038,6
+5038,7
@@
cptr make_screen_dump(void)
char file_name[1024];
char buf[4096];
char screen_buf[SCREEN_BUF_SIZE];
+ int total_len = 0;
char *html_head[] = {
"<html>\n<body text=\"#ffffff\" bgcolor=\"#000000\">\n",
@@
-5124,7
+5125,8
@@
cptr make_screen_dump(void)
while (fgets(buf, 4096, fff))
{
- if (strlen(screen_buf) + strlen(buf) + 1 > SCREEN_BUF_SIZE)
+ total_len += strlen(buf);
+ if (total_len + 1 > SCREEN_BUF_SIZE)
{
/* Too big screen dump size */
return (NULL);