OSDN Git Service
(root)
/
opengate
/
opengate.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ca72e04
)
Ver1.5.24 Modified string at address conversion error in addr-convert.c.
author
watanaby
<>
Thu, 29 Nov 2012 01:14:02 +0000
(
01:14
+0000)
committer
watanaby
<>
Thu, 29 Nov 2012 01:14:02 +0000
(
01:14
+0000)
opengate/doc/Changes.html
patch
|
blob
|
history
opengate/opengatesrv/addr-convert.c
patch
|
blob
|
history
diff --git
a/opengate/doc/Changes.html
b/opengate/doc/Changes.html
index
6cdb52a
..
39e0dc5
100644
(file)
--- a/
opengate/doc/Changes.html
+++ b/
opengate/doc/Changes.html
@@
-726,9
+726,13
@@
Opengate History</H3>
</DT><DD>
Modified a variable name to avoid misunderstanding.
</DD><DT>
- Ver.1.5.2
2
at 2012.11.21
+ Ver.1.5.2
3
at 2012.11.21
</DT><DD>
Fixed error at loading httpkeep page.
+ </DD><DT>
+ Ver.1.5.24 at 2012.11.29
+ </DT><DD>
+ Modified string at address conversion error in opengatefwd.
</DD>
</DL>
<P>
diff --git
a/opengate/opengatesrv/addr-convert.c
b/opengate/opengatesrv/addr-convert.c
index
a8f50c0
..
4320e49
100644
(file)
--- a/
opengate/opengatesrv/addr-convert.c
+++ b/
opengate/opengatesrv/addr-convert.c
@@
-57,7
+57,7
@@
int addrEncode(char encodeAddr[], char dotSepAddr[])
snprintf(encodeAddr, ADDRMAXLN,
"%lu-%d-%d", address,checkDigit, (int)time(NULL));
}else{
-
encodeAddr[0]='\0'
;
+
strncpy(encodeAddr, "0-0-0", ADDRMAXLN)
;
}
return illform;