- Timestamp:
- 03/15/08 13:38:33 (9 months ago)
- Location:
- lang/c/partty/trunk
- Files:
-
- 2 modified
-
configure.in (modified) (1 diff)
-
src/server.cc (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lang/c/partty/trunk/configure.in
r7879 r7968 37 37 AC_CHECK_HEADERS([arpa/inet.h fcntl.h limits.h netdb.h netinet/in.h stddef.h stdint.h stdlib.h string.h sys/ioctl.h sys/socket.h sys/time.h termios.h unistd.h]) 38 38 39 AC_LANG_PUSH([C++]) 40 AC_CHECK_HEADERS([tr1/functional boost/tr1/functional.hpp boost/function.hpp boost/bind.hpp]) 41 AC_LANG_POP([C++]) 42 39 43 # Checks for typedefs, structures, and compiler characteristics. 40 44 AC_HEADER_STDBOOL -
lang/c/partty/trunk/src/server.cc
r7867 r7968 262 262 next_host->readonly_password_length = header->readonly_password_length; 263 263 264 // message 264 265 std::memcpy( next_host->message, 265 266 payload, … … 267 268 next_host->message[header->message_length] = '\0'; 268 269 270 // session name 269 271 std::memcpy( next_host->session_name, 270 272 (char*)payload + next_host->message_length, … … 272 274 next_host->session_name[header->session_name_length] = '\0'; 273 275 276 // writable password 274 277 std::memcpy( next_host->writable_password, 275 278 (char*)payload + next_host->message_length … … 278 281 next_host->writable_password[header->writable_password_length] = '\0'; 279 282 283 // readonly password 280 284 std::memcpy( next_host->readonly_password, 281 285 (char*)payload + next_host->message_length 282 286 + next_host->session_name_length 283 + next_host-> readonly_password_length,287 + next_host->writable_password_length, 284 288 header->readonly_password_length); 285 289 next_host->readonly_password[header->readonly_password_length] = '\0'; … … 338 342 stream.write(info.message, info.message_length) << "\n"; 339 343 344 stream << "operation-password: "; 345 stream.write(info.writable_password, info.writable_password_length) << "\n"; 346 340 347 stream << "view-only-password: "; 341 stream.write(info.readonly_password, info.readonly_password_length) << "\n";342 343 stream << "operation-password: ";344 348 stream.write(info.readonly_password, info.readonly_password_length) << "\n"; 345 349 }
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)