comparison cli-kex.c @ 723:0fd32a552ea5

Fix a few compile warnings
author Matt Johnston <matt@ucc.asn.au>
date Sat, 23 Mar 2013 23:17:01 +0800
parents 005530560594
children 9a5438271556 d44325108d0e b07eb3dc23ec
comparison
equal deleted inserted replaced
722:4a274f47eabd 723:0fd32a552ea5
307 buf_putbytes(line, cli_opts.remotehost, hostlen); 307 buf_putbytes(line, cli_opts.remotehost, hostlen);
308 buf_putbyte(line, ' '); 308 buf_putbyte(line, ' ');
309 buf_putbytes(line, algoname, algolen); 309 buf_putbytes(line, algoname, algolen);
310 buf_putbyte(line, ' '); 310 buf_putbyte(line, ' ');
311 len = line->size - line->pos; 311 len = line->size - line->pos;
312 TRACE(("keybloblen %d, len %d", keybloblen, len))
313 /* The only failure with base64 is buffer_overflow, but buf_getwriteptr 312 /* The only failure with base64 is buffer_overflow, but buf_getwriteptr
314 * will die horribly in the case anyway */ 313 * will die horribly in the case anyway */
315 base64_encode(keyblob, keybloblen, buf_getwriteptr(line, len), &len); 314 base64_encode(keyblob, keybloblen, buf_getwriteptr(line, len), &len);
316 buf_incrwritepos(line, len); 315 buf_incrwritepos(line, len);
317 buf_putbyte(line, '\n'); 316 buf_putbyte(line, '\n');