OSDN Git Service
(root)
/
hengbandforosx
/
hengbandosx.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eb6d787
)
マクロのコマンド等を入力するとき、文字列の最後に"\"があると終端文字を
author
mogami
<mogami@0568b783-4c39-0410-ac80-bf13821ea2a2>
Mon, 26 May 2003 09:15:52 +0000
(09:15 +0000)
committer
mogami
<mogami@0568b783-4c39-0410-ac80-bf13821ea2a2>
Mon, 26 May 2003 09:15:52 +0000
(09:15 +0000)
エスケープして、メモリ内のゴミが文字列の終りにくっついてしまうバグ修正。
src/util.c
patch
|
blob
|
history
diff --git
a/src/util.c
b/src/util.c
index
cfa0968
..
8bcfc69
100644
(file)
--- a/
src/util.c
+++ b/
src/util.c
@@
-1154,6
+1154,9
@@
void text_to_ascii(char *buf, cptr str)
/* Skip the backslash */
str++;
+ /* Paranoia */
+ if (!(*str)) break;
+
/* Macro Trigger */
if (*str == '[')
{