projects
/
silc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
c9ad1bc
)
Length variable bugfix.
author
Pekka Riikonen
<priikone@silcnet.org>
Fri, 18 Oct 2002 07:19:13 +0000
(07:19 +0000)
committer
Pekka Riikonen
<priikone@silcnet.org>
Fri, 18 Oct 2002 07:19:13 +0000
(07:19 +0000)
lib/silccore/silcattrs.c
patch
|
blob
|
history
diff --git
a/lib/silccore/silcattrs.c
b/lib/silccore/silcattrs.c
index b69a9b6ba06769a8a14c2c444f1527aea76a2a69..2e64777176ea5bd847758c49e6c56a71c9dfe53c 100644
(file)
--- a/
lib/silccore/silcattrs.c
+++ b/
lib/silccore/silcattrs.c
@@
-143,7
+143,7
@@
silc_attribute_payload_encode_int(SilcAttribute attribute,
SILC_STR_UI_SHORT(len1),
SILC_STR_UI16_STRING(len1 ? geo->longitude : ""),
SILC_STR_UI_SHORT(len2),
SILC_STR_UI_SHORT(len1),
SILC_STR_UI16_STRING(len1 ? geo->longitude : ""),
SILC_STR_UI_SHORT(len2),
- SILC_STR_UI16_STRING(len ? geo->latitude : ""),
+ SILC_STR_UI16_STRING(len
2
? geo->latitude : ""),
SILC_STR_UI_SHORT(len3),
SILC_STR_UI16_STRING(len3 ? geo->altitude : ""),
SILC_STR_UI_SHORT(len4),
SILC_STR_UI_SHORT(len3),
SILC_STR_UI16_STRING(len3 ? geo->altitude : ""),
SILC_STR_UI_SHORT(len4),
@@
-173,9
+173,9
@@
silc_attribute_payload_encode_int(SilcAttribute attribute,
silc_buffer_format(tmpbuf,
SILC_STR_UI_INT(dev->type),
SILC_STR_UI_SHORT(len1),
silc_buffer_format(tmpbuf,
SILC_STR_UI_INT(dev->type),
SILC_STR_UI_SHORT(len1),
- SILC_STR_UI16_STRING(len ? dev->manufacturer : ""),
+ SILC_STR_UI16_STRING(len
1
? dev->manufacturer : ""),
SILC_STR_UI_SHORT(len2),
SILC_STR_UI_SHORT(len2),
- SILC_STR_UI16_STRING(len ? dev->version : ""),
+ SILC_STR_UI16_STRING(len
2
? dev->version : ""),
SILC_STR_UI_SHORT(len3),
SILC_STR_UI16_STRING(len3 ? dev->model : ""),
SILC_STR_UI_SHORT(len4),
SILC_STR_UI_SHORT(len3),
SILC_STR_UI16_STRING(len3 ? dev->model : ""),
SILC_STR_UI_SHORT(len4),