projects
/
silc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merged from silc_1_0_branch.
[silc.git]
/
lib
/
silcsftp
/
sftp_util.c
diff --git
a/lib/silcsftp/sftp_util.c
b/lib/silcsftp/sftp_util.c
index 2e982d6d6b70a502cfb4f12e886ee03f6ff68d18..dc2f5cff67e19fab735a3a158518b0e0289e298a 100644
(file)
--- a/
lib/silcsftp/sftp_util.c
+++ b/
lib/silcsftp/sftp_util.c
@@
-4,7
+4,7
@@
Author: Pekka Riikonen <priikone@silcnet.org>
Author: Pekka Riikonen <priikone@silcnet.org>
- Copyright (C) 2001 Pekka Riikonen
+ Copyright (C) 2001
- 2002
Pekka Riikonen
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@
-133,7
+133,8
@@
SilcSFTPPacket silc_sftp_packet_decode(SilcBuffer packet,
SilcBuffer silc_sftp_attr_encode(SilcSFTPAttributes attr)
{
SilcBuffer buffer;
SilcBuffer silc_sftp_attr_encode(SilcSFTPAttributes attr)
{
SilcBuffer buffer;
- int i, ret, len = 4;
+ int i, ret;
+ SilcUInt32 len = 4;
if (attr->flags & SILC_SFTP_ATTR_SIZE)
len += 8;
if (attr->flags & SILC_SFTP_ATTR_SIZE)
len += 8;
@@
-152,10
+153,9
@@
SilcBuffer silc_sftp_attr_encode(SilcSFTPAttributes attr)
}
}
}
}
- buffer = silc_buffer_alloc(len);
+ buffer = silc_buffer_alloc
_size
(len);
if (!buffer)
return NULL;
if (!buffer)
return NULL;
- silc_buffer_pull_tail(buffer, SILC_BUFFER_END(buffer));
silc_buffer_format(buffer,
SILC_STR_UI_INT(attr->flags),
silc_buffer_format(buffer,
SILC_STR_UI_INT(attr->flags),