aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/lscript/lscript_execute/lscript_readlso.cpp
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:45:34 -0500
committerJacek Antonelli2008-08-15 23:45:34 -0500
commitcd17687f01420952712a500107e0f93e7ab8d5f8 (patch)
treece48c2b706f2c1176290e39fb555fbdf6648ce01 /linden/indra/lscript/lscript_execute/lscript_readlso.cpp
parentSecond Life viewer sources 1.19.0.5 (diff)
downloadmeta-impy-cd17687f01420952712a500107e0f93e7ab8d5f8.zip
meta-impy-cd17687f01420952712a500107e0f93e7ab8d5f8.tar.gz
meta-impy-cd17687f01420952712a500107e0f93e7ab8d5f8.tar.bz2
meta-impy-cd17687f01420952712a500107e0f93e7ab8d5f8.tar.xz
Second Life viewer sources 1.19.1.0
Diffstat (limited to 'linden/indra/lscript/lscript_execute/lscript_readlso.cpp')
-rw-r--r--linden/indra/lscript/lscript_execute/lscript_readlso.cpp184
1 files changed, 92 insertions, 92 deletions
diff --git a/linden/indra/lscript/lscript_execute/lscript_readlso.cpp b/linden/indra/lscript/lscript_execute/lscript_readlso.cpp
index b6d5092..218e14a 100644
--- a/linden/indra/lscript/lscript_execute/lscript_readlso.cpp
+++ b/linden/indra/lscript/lscript_execute/lscript_readlso.cpp
@@ -155,7 +155,7 @@ void LLScriptLSOParse::printGlobals(FILE *fp)
155 type = *(mRawData + global_v_offset++); 155 type = *(mRawData + global_v_offset++);
156 156
157 // set name 157 // set name
158 bytestream2char(name, mRawData, global_v_offset); 158 bytestream2char(name, mRawData, global_v_offset, sizeof(name));
159 159
160 switch(type) 160 switch(type)
161 { 161 {
@@ -261,7 +261,7 @@ void LLScriptLSOParse::printGlobalFunctions(FILE *fp)
261 // where do the opcodes start 261 // where do the opcodes start
262 opcode_start = bytestream2integer(mRawData, function_offset); 262 opcode_start = bytestream2integer(mRawData, function_offset);
263 opcode_start += orig_function_offset; 263 opcode_start += orig_function_offset;
264 bytestream2char(name, mRawData, function_offset); 264 bytestream2char(name, mRawData, function_offset, sizeof(name));
265 // get return type 265 // get return type
266 type = *(mRawData + function_offset++); 266 type = *(mRawData + function_offset++);
267 fprintf(fp, "[Function #%d] [0x%X] %s\n", function_number, orig_function_offset, name); 267 fprintf(fp, "[Function #%d] [0x%X] %s\n", function_number, orig_function_offset, name);
@@ -272,7 +272,7 @@ void LLScriptLSOParse::printGlobalFunctions(FILE *fp)
272 S32 pcount = 0; 272 S32 pcount = 0;
273 while (type) 273 while (type)
274 { 274 {
275 bytestream2char(name, mRawData, function_offset); 275 bytestream2char(name, mRawData, function_offset, sizeof(name));
276 fprintf(fp, "\tParameter #%d: %s %s\n", pcount++, LSCRIPTTypeNames[type], name); 276 fprintf(fp, "\tParameter #%d: %s %s\n", pcount++, LSCRIPTTypeNames[type], name);
277 type = *(mRawData + function_offset++); 277 type = *(mRawData + function_offset++);
278 } 278 }
@@ -336,7 +336,7 @@ void LLScriptLSOParse::printStates(FILE *fp)
336 state_info_offset += state_offset; 336 state_info_offset += state_offset;
337 fprintf(fp, "[0x%X] ", state_info_offset); 337 fprintf(fp, "[0x%X] ", state_info_offset);
338 state_info_offset += LSCRIPTDataSize[LST_INTEGER]; 338 state_info_offset += LSCRIPTDataSize[LST_INTEGER];
339 bytestream2char(name, mRawData, state_info_offset); 339 bytestream2char(name, mRawData, state_info_offset, sizeof(name));
340 fprintf(fp, "%s\n", name); 340 fprintf(fp, "%s\n", name);
341 341
342 event_jump_table = state_info_offset; 342 event_jump_table = state_info_offset;
@@ -385,243 +385,243 @@ void LLScriptLSOParse::printStates(FILE *fp)
385 switch(j) 385 switch(j)
386 { 386 {
387 case LSTT_STATE_ENTRY: // LSTT_STATE_ENTRY 387 case LSTT_STATE_ENTRY: // LSTT_STATE_ENTRY
388 bytestream2char(name, mRawData, event_offset); 388 bytestream2char(name, mRawData, event_offset, sizeof(name));
389 fprintf(fp, "%s\n", name); 389 fprintf(fp, "%s\n", name);
390 break; 390 break;
391 case LSTT_STATE_EXIT: // LSTT_STATE_EXIT 391 case LSTT_STATE_EXIT: // LSTT_STATE_EXIT
392 bytestream2char(name, mRawData, event_offset); 392 bytestream2char(name, mRawData, event_offset, sizeof(name));
393 fprintf(fp, "%s\n", name); 393 fprintf(fp, "%s\n", name);
394 break; 394 break;
395 case LSTT_TOUCH_START: // LSTT_TOUCH_START 395 case LSTT_TOUCH_START: // LSTT_TOUCH_START
396 bytestream2char(name, mRawData, event_offset); 396 bytestream2char(name, mRawData, event_offset, sizeof(name));
397 fprintf(fp, "%s\n", name); 397 fprintf(fp, "%s\n", name);
398 bytestream2char(name, mRawData, event_offset); 398 bytestream2char(name, mRawData, event_offset, sizeof(name));
399 fprintf(fp, "\t\tkey %s\n", name); 399 fprintf(fp, "\t\tkey %s\n", name);
400 bytestream2char(name, mRawData, event_offset); 400 bytestream2char(name, mRawData, event_offset, sizeof(name));
401 fprintf(fp, "\t\tvector %s\n", name); 401 fprintf(fp, "\t\tvector %s\n", name);
402 break; 402 break;
403 case LSTT_TOUCH: // LSTT_TOUCH 403 case LSTT_TOUCH: // LSTT_TOUCH
404 bytestream2char(name, mRawData, event_offset); 404 bytestream2char(name, mRawData, event_offset, sizeof(name));
405 fprintf(fp, "%s\n", name); 405 fprintf(fp, "%s\n", name);
406 bytestream2char(name, mRawData, event_offset); 406 bytestream2char(name, mRawData, event_offset, sizeof(name));
407 fprintf(fp, "\t\tkey %s\n", name); 407 fprintf(fp, "\t\tkey %s\n", name);
408 bytestream2char(name, mRawData, event_offset); 408 bytestream2char(name, mRawData, event_offset, sizeof(name));
409 fprintf(fp, "\t\tvector %s\n", name); 409 fprintf(fp, "\t\tvector %s\n", name);
410 break; 410 break;
411 case LSTT_TOUCH_END: // LSTT_TOUCH_END 411 case LSTT_TOUCH_END: // LSTT_TOUCH_END
412 bytestream2char(name, mRawData, event_offset); 412 bytestream2char(name, mRawData, event_offset, sizeof(name));
413 fprintf(fp, "%s\n", name); 413 fprintf(fp, "%s\n", name);
414 bytestream2char(name, mRawData, event_offset); 414 bytestream2char(name, mRawData, event_offset, sizeof(name));
415 fprintf(fp, "\t\tkey %s\n", name); 415 fprintf(fp, "\t\tkey %s\n", name);
416 bytestream2char(name, mRawData, event_offset); 416 bytestream2char(name, mRawData, event_offset, sizeof(name));
417 fprintf(fp, "\t\tvector %s\n", name); 417 fprintf(fp, "\t\tvector %s\n", name);
418 break; 418 break;
419 case LSTT_COLLISION_START: // LSTT_COLLISION_START 419 case LSTT_COLLISION_START: // LSTT_COLLISION_START
420 bytestream2char(name, mRawData, event_offset); 420 bytestream2char(name, mRawData, event_offset, sizeof(name));
421 fprintf(fp, "%s\n", name); 421 fprintf(fp, "%s\n", name);
422 bytestream2char(name, mRawData, event_offset); 422 bytestream2char(name, mRawData, event_offset, sizeof(name));
423 fprintf(fp, "\t\tkey %s\n", name); 423 fprintf(fp, "\t\tkey %s\n", name);
424 bytestream2char(name, mRawData, event_offset); 424 bytestream2char(name, mRawData, event_offset, sizeof(name));
425 fprintf(fp, "\t\tvector %s\n", name); 425 fprintf(fp, "\t\tvector %s\n", name);
426 bytestream2char(name, mRawData, event_offset); 426 bytestream2char(name, mRawData, event_offset, sizeof(name));
427 fprintf(fp, "\t\tvector %s\n", name); 427 fprintf(fp, "\t\tvector %s\n", name);
428 break; 428 break;
429 case LSTT_COLLISION: // LSTT_COLLISION 429 case LSTT_COLLISION: // LSTT_COLLISION
430 bytestream2char(name, mRawData, event_offset); 430 bytestream2char(name, mRawData, event_offset, sizeof(name));
431 fprintf(fp, "%s\n", name); 431 fprintf(fp, "%s\n", name);
432 bytestream2char(name, mRawData, event_offset); 432 bytestream2char(name, mRawData, event_offset, sizeof(name));
433 fprintf(fp, "\t\tkey %s\n", name); 433 fprintf(fp, "\t\tkey %s\n", name);
434 bytestream2char(name, mRawData, event_offset); 434 bytestream2char(name, mRawData, event_offset, sizeof(name));
435 fprintf(fp, "\t\tvector %s\n", name); 435 fprintf(fp, "\t\tvector %s\n", name);
436 bytestream2char(name, mRawData, event_offset); 436 bytestream2char(name, mRawData, event_offset, sizeof(name));
437 fprintf(fp, "\t\tvector %s\n", name); 437 fprintf(fp, "\t\tvector %s\n", name);
438 break; 438 break;
439 case LSTT_COLLISION_END: // LSTT_COLLISION_END 439 case LSTT_COLLISION_END: // LSTT_COLLISION_END
440 bytestream2char(name, mRawData, event_offset); 440 bytestream2char(name, mRawData, event_offset, sizeof(name));
441 fprintf(fp, "%s\n", name); 441 fprintf(fp, "%s\n", name);
442 bytestream2char(name, mRawData, event_offset); 442 bytestream2char(name, mRawData, event_offset, sizeof(name));
443 fprintf(fp, "\t\tkey %s\n", name); 443 fprintf(fp, "\t\tkey %s\n", name);
444 bytestream2char(name, mRawData, event_offset); 444 bytestream2char(name, mRawData, event_offset, sizeof(name));
445 fprintf(fp, "\t\tvector %s\n", name); 445 fprintf(fp, "\t\tvector %s\n", name);
446 bytestream2char(name, mRawData, event_offset); 446 bytestream2char(name, mRawData, event_offset, sizeof(name));
447 fprintf(fp, "\t\tvector %s\n", name); 447 fprintf(fp, "\t\tvector %s\n", name);
448 break; 448 break;
449 case LSTT_LAND_COLLISION_START: // LSTT_LAND_COLLISION_START 449 case LSTT_LAND_COLLISION_START: // LSTT_LAND_COLLISION_START
450 bytestream2char(name, mRawData, event_offset); 450 bytestream2char(name, mRawData, event_offset, sizeof(name));
451 fprintf(fp, "%s\n", name); 451 fprintf(fp, "%s\n", name);
452 bytestream2char(name, mRawData, event_offset); 452 bytestream2char(name, mRawData, event_offset, sizeof(name));
453 fprintf(fp, "\t\tvector %s\n", name); 453 fprintf(fp, "\t\tvector %s\n", name);
454 break; 454 break;
455 case LSTT_LAND_COLLISION: // LSTT_LAND_COLLISION 455 case LSTT_LAND_COLLISION: // LSTT_LAND_COLLISION
456 bytestream2char(name, mRawData, event_offset); 456 bytestream2char(name, mRawData, event_offset, sizeof(name));
457 fprintf(fp, "%s\n", name); 457 fprintf(fp, "%s\n", name);
458 bytestream2char(name, mRawData, event_offset); 458 bytestream2char(name, mRawData, event_offset, sizeof(name));
459 fprintf(fp, "\t\tvector %s\n", name); 459 fprintf(fp, "\t\tvector %s\n", name);
460 break; 460 break;
461 case LSTT_LAND_COLLISION_END: // LSTT_LAND_COLLISION_END 461 case LSTT_LAND_COLLISION_END: // LSTT_LAND_COLLISION_END
462 bytestream2char(name, mRawData, event_offset); 462 bytestream2char(name, mRawData, event_offset, sizeof(name));
463 fprintf(fp, "%s\n", name); 463 fprintf(fp, "%s\n", name);
464 bytestream2char(name, mRawData, event_offset); 464 bytestream2char(name, mRawData, event_offset, sizeof(name));
465 fprintf(fp, "\t\tvector %s\n", name); 465 fprintf(fp, "\t\tvector %s\n", name);
466 break; 466 break;
467 case LSTT_INVENTORY: // LSTT_INVENTORY 467 case LSTT_INVENTORY: // LSTT_INVENTORY
468 bytestream2char(name, mRawData, event_offset); 468 bytestream2char(name, mRawData, event_offset, sizeof(name));
469 fprintf(fp, "%s\n", name); 469 fprintf(fp, "%s\n", name);
470 bytestream2char(name, mRawData, event_offset); 470 bytestream2char(name, mRawData, event_offset, sizeof(name));
471 fprintf(fp, "\t\tinteger %s\n", name); 471 fprintf(fp, "\t\tinteger %s\n", name);
472 break; 472 break;
473 case LSTT_ATTACH: // LSTT_ATTACH 473 case LSTT_ATTACH: // LSTT_ATTACH
474 bytestream2char(name, mRawData, event_offset); 474 bytestream2char(name, mRawData, event_offset, sizeof(name));
475 fprintf(fp, "%s\n", name); 475 fprintf(fp, "%s\n", name);
476 bytestream2char(name, mRawData, event_offset); 476 bytestream2char(name, mRawData, event_offset, sizeof(name));
477 fprintf(fp, "\t\tkey %s\n", name); 477 fprintf(fp, "\t\tkey %s\n", name);
478 break; 478 break;
479 case LSTT_DATASERVER: // LSTT_DATASERVER 479 case LSTT_DATASERVER: // LSTT_DATASERVER
480 bytestream2char(name, mRawData, event_offset); 480 bytestream2char(name, mRawData, event_offset, sizeof(name));
481 fprintf(fp, "%s\n", name); 481 fprintf(fp, "%s\n", name);
482 bytestream2char(name, mRawData, event_offset); 482 bytestream2char(name, mRawData, event_offset, sizeof(name));
483 fprintf(fp, "\t\tkey %s\n", name); 483 fprintf(fp, "\t\tkey %s\n", name);
484 bytestream2char(name, mRawData, event_offset); 484 bytestream2char(name, mRawData, event_offset, sizeof(name));
485 fprintf(fp, "\t\tstring %s\n", name); 485 fprintf(fp, "\t\tstring %s\n", name);
486 break; 486 break;
487 case LSTT_TIMER: // LSTT_TIMER 487 case LSTT_TIMER: // LSTT_TIMER
488 bytestream2char(name, mRawData, event_offset); 488 bytestream2char(name, mRawData, event_offset, sizeof(name));
489 fprintf(fp, "%s\n", name); 489 fprintf(fp, "%s\n", name);
490 break; 490 break;
491 case LSTT_MOVING_START: // LSTT_MOVING_START 491 case LSTT_MOVING_START: // LSTT_MOVING_START
492 bytestream2char(name, mRawData, event_offset); 492 bytestream2char(name, mRawData, event_offset, sizeof(name));
493 fprintf(fp, "%s\n", name); 493 fprintf(fp, "%s\n", name);
494 break; 494 break;
495 case LSTT_MOVING_END: // LSTT_MOVING_END 495 case LSTT_MOVING_END: // LSTT_MOVING_END
496 bytestream2char(name, mRawData, event_offset); 496 bytestream2char(name, mRawData, event_offset, sizeof(name));
497 fprintf(fp, "%s\n", name); 497 fprintf(fp, "%s\n", name);
498 break; 498 break;
499 case LSTT_CHAT: // LSTT_CHAT 499 case LSTT_CHAT: // LSTT_CHAT
500 bytestream2char(name, mRawData, event_offset); 500 bytestream2char(name, mRawData, event_offset, sizeof(name));
501 fprintf(fp, "%s\n", name); 501 fprintf(fp, "%s\n", name);
502 bytestream2char(name, mRawData, event_offset); 502 bytestream2char(name, mRawData, event_offset, sizeof(name));
503 fprintf(fp, "\t\tinteger %s\n", name); 503 fprintf(fp, "\t\tinteger %s\n", name);
504 bytestream2char(name, mRawData, event_offset); 504 bytestream2char(name, mRawData, event_offset, sizeof(name));
505 fprintf(fp, "\t\tkey %s\n", name); 505 fprintf(fp, "\t\tkey %s\n", name);
506 bytestream2char(name, mRawData, event_offset); 506 bytestream2char(name, mRawData, event_offset, sizeof(name));
507 fprintf(fp, "\t\tstring %s\n", name); 507 fprintf(fp, "\t\tstring %s\n", name);
508 break; 508 break;
509 case LSTT_OBJECT_REZ: // LSTT_OBJECT_REZ 509 case LSTT_OBJECT_REZ: // LSTT_OBJECT_REZ
510 bytestream2char(name, mRawData, event_offset); 510 bytestream2char(name, mRawData, event_offset, sizeof(name));
511 fprintf(fp, "%s\n", name); 511 fprintf(fp, "%s\n", name);
512 bytestream2char(name, mRawData, event_offset); 512 bytestream2char(name, mRawData, event_offset, sizeof(name));
513 fprintf(fp, "\t\tkey %s\n", name); 513 fprintf(fp, "\t\tkey %s\n", name);
514 break; 514 break;
515 case LSTT_REMOTE_DATA: // LSTT_REMOTE_DATA 515 case LSTT_REMOTE_DATA: // LSTT_REMOTE_DATA
516 bytestream2char(name, mRawData, event_offset); 516 bytestream2char(name, mRawData, event_offset, sizeof(name));
517 fprintf(fp, "%s\n", name); 517 fprintf(fp, "%s\n", name);
518 bytestream2char(name, mRawData, event_offset); 518 bytestream2char(name, mRawData, event_offset, sizeof(name));
519 fprintf(fp, "\t\tinteger %s\n", name); 519 fprintf(fp, "\t\tinteger %s\n", name);
520 bytestream2char(name, mRawData, event_offset); 520 bytestream2char(name, mRawData, event_offset, sizeof(name));
521 fprintf(fp, "\t\tkey %s\n", name); 521 fprintf(fp, "\t\tkey %s\n", name);
522 bytestream2char(name, mRawData, event_offset); 522 bytestream2char(name, mRawData, event_offset, sizeof(name));
523 fprintf(fp, "\t\tinteger %s\n", name); 523 fprintf(fp, "\t\tinteger %s\n", name);
524 bytestream2char(name, mRawData, event_offset); 524 bytestream2char(name, mRawData, event_offset, sizeof(name));
525 fprintf(fp, "\t\tstring %s\n", name); 525 fprintf(fp, "\t\tstring %s\n", name);
526 break; 526 break;
527 case LSTT_REZ: // LSTT_REZ 527 case LSTT_REZ: // LSTT_REZ
528 bytestream2char(name, mRawData, event_offset); 528 bytestream2char(name, mRawData, event_offset, sizeof(name));
529 fprintf(fp, "%s\n", name); 529 fprintf(fp, "%s\n", name);
530 break; 530 break;
531 case LSTT_SENSOR: // LSTT_SENSOR 531 case LSTT_SENSOR: // LSTT_SENSOR
532 bytestream2char(name, mRawData, event_offset); 532 bytestream2char(name, mRawData, event_offset, sizeof(name));
533 fprintf(fp, "%s\n", name); 533 fprintf(fp, "%s\n", name);
534 bytestream2char(name, mRawData, event_offset); 534 bytestream2char(name, mRawData, event_offset, sizeof(name));
535 fprintf(fp, "\t\tinteger %s\n", name); 535 fprintf(fp, "\t\tinteger %s\n", name);
536 break; 536 break;
537 case LSTT_NO_SENSOR: // LSTT_NO_SENSOR 537 case LSTT_NO_SENSOR: // LSTT_NO_SENSOR
538 bytestream2char(name, mRawData, event_offset); 538 bytestream2char(name, mRawData, event_offset, sizeof(name));
539 fprintf(fp, "%s\n", name); 539 fprintf(fp, "%s\n", name);
540 break; 540 break;
541 case LSTT_CONTROL: // LSTT_CONTROL 541 case LSTT_CONTROL: // LSTT_CONTROL
542 bytestream2char(name, mRawData, event_offset); 542 bytestream2char(name, mRawData, event_offset, sizeof(name));
543 fprintf(fp, "%s\n", name); 543 fprintf(fp, "%s\n", name);
544 bytestream2char(name, mRawData, event_offset); 544 bytestream2char(name, mRawData, event_offset, sizeof(name));
545 fprintf(fp, "\t\tkey %s\n", name); 545 fprintf(fp, "\t\tkey %s\n", name);
546 bytestream2char(name, mRawData, event_offset); 546 bytestream2char(name, mRawData, event_offset, sizeof(name));
547 fprintf(fp, "\t\tinteger %s\n", name); 547 fprintf(fp, "\t\tinteger %s\n", name);
548 bytestream2char(name, mRawData, event_offset); 548 bytestream2char(name, mRawData, event_offset, sizeof(name));
549 fprintf(fp, "\t\tinteger %s\n", name); 549 fprintf(fp, "\t\tinteger %s\n", name);
550 break; 550 break;
551 case LSTT_LINK_MESSAGE: // LSTT_LINK_MESSAGE 551 case LSTT_LINK_MESSAGE: // LSTT_LINK_MESSAGE
552 bytestream2char(name, mRawData, event_offset); 552 bytestream2char(name, mRawData, event_offset, sizeof(name));
553 fprintf(fp, "%s\n", name); 553 fprintf(fp, "%s\n", name);
554 bytestream2char(name, mRawData, event_offset); 554 bytestream2char(name, mRawData, event_offset, sizeof(name));
555 fprintf(fp, "\t\tinteger %s\n", name); 555 fprintf(fp, "\t\tinteger %s\n", name);
556 bytestream2char(name, mRawData, event_offset); 556 bytestream2char(name, mRawData, event_offset, sizeof(name));
557 fprintf(fp, "\t\tstring %s\n", name); 557 fprintf(fp, "\t\tstring %s\n", name);
558 bytestream2char(name, mRawData, event_offset); 558 bytestream2char(name, mRawData, event_offset, sizeof(name));
559 fprintf(fp, "\t\tkey %s\n", name); 559 fprintf(fp, "\t\tkey %s\n", name);
560 break; 560 break;
561 case LSTT_MONEY: // LSTT_MONEY 561 case LSTT_MONEY: // LSTT_MONEY
562 bytestream2char(name, mRawData, event_offset); 562 bytestream2char(name, mRawData, event_offset, sizeof(name));
563 fprintf(fp, "%s\n", name); 563 fprintf(fp, "%s\n", name);
564 bytestream2char(name, mRawData, event_offset); 564 bytestream2char(name, mRawData, event_offset, sizeof(name));
565 fprintf(fp, "\t\tkey %s\n", name); 565 fprintf(fp, "\t\tkey %s\n", name);
566 bytestream2char(name, mRawData, event_offset); 566 bytestream2char(name, mRawData, event_offset, sizeof(name));
567 fprintf(fp, "\t\tinteger %s\n", name); 567 fprintf(fp, "\t\tinteger %s\n", name);
568 break; 568 break;
569 case LSTT_EMAIL: // LSTT_EMAIL 569 case LSTT_EMAIL: // LSTT_EMAIL
570 bytestream2char(name, mRawData, event_offset); 570 bytestream2char(name, mRawData, event_offset, sizeof(name));
571 fprintf(fp, "%s\n", name); 571 fprintf(fp, "%s\n", name);
572 bytestream2char(name, mRawData, event_offset); 572 bytestream2char(name, mRawData, event_offset, sizeof(name));
573 fprintf(fp, "\t\tstring %s\n", name); 573 fprintf(fp, "\t\tstring %s\n", name);
574 bytestream2char(name, mRawData, event_offset); 574 bytestream2char(name, mRawData, event_offset, sizeof(name));
575 fprintf(fp, "\t\tstring %s\n", name); 575 fprintf(fp, "\t\tstring %s\n", name);
576 bytestream2char(name, mRawData, event_offset); 576 bytestream2char(name, mRawData, event_offset, sizeof(name));
577 fprintf(fp, "\t\tstring %s\n", name); 577 fprintf(fp, "\t\tstring %s\n", name);
578 bytestream2char(name, mRawData, event_offset); 578 bytestream2char(name, mRawData, event_offset, sizeof(name));
579 fprintf(fp, "\t\tinteger %s\n", name); 579 fprintf(fp, "\t\tinteger %s\n", name);
580 break; 580 break;
581 case LSTT_AT_TARGET: // LSTT_AT_TARGET 581 case LSTT_AT_TARGET: // LSTT_AT_TARGET
582 bytestream2char(name, mRawData, event_offset); 582 bytestream2char(name, mRawData, event_offset, sizeof(name));
583 fprintf(fp, "%s\n", name); 583 fprintf(fp, "%s\n", name);
584 bytestream2char(name, mRawData, event_offset); 584 bytestream2char(name, mRawData, event_offset, sizeof(name));
585 fprintf(fp, "\t\tinteger %s\n", name); 585 fprintf(fp, "\t\tinteger %s\n", name);
586 bytestream2char(name, mRawData, event_offset); 586 bytestream2char(name, mRawData, event_offset, sizeof(name));
587 fprintf(fp, "\t\tvector %s\n", name); 587 fprintf(fp, "\t\tvector %s\n", name);
588 bytestream2char(name, mRawData, event_offset); 588 bytestream2char(name, mRawData, event_offset, sizeof(name));
589 fprintf(fp, "\t\tvector %s\n", name); 589 fprintf(fp, "\t\tvector %s\n", name);
590 break; 590 break;
591 case LSTT_NOT_AT_TARGET: // LSTT_NOT_AT_TARGET 591 case LSTT_NOT_AT_TARGET: // LSTT_NOT_AT_TARGET
592 bytestream2char(name, mRawData, event_offset); 592 bytestream2char(name, mRawData, event_offset, sizeof(name));
593 fprintf(fp, "%s\n", name); 593 fprintf(fp, "%s\n", name);
594 break; 594 break;
595 case LSTT_AT_ROT_TARGET: // LSTT_AT_ROT_TARGET 595 case LSTT_AT_ROT_TARGET: // LSTT_AT_ROT_TARGET
596 bytestream2char(name, mRawData, event_offset); 596 bytestream2char(name, mRawData, event_offset, sizeof(name));
597 fprintf(fp, "%s\n", name); 597 fprintf(fp, "%s\n", name);
598 bytestream2char(name, mRawData, event_offset); 598 bytestream2char(name, mRawData, event_offset, sizeof(name));
599 fprintf(fp, "\t\tinteger %s\n", name); 599 fprintf(fp, "\t\tinteger %s\n", name);
600 bytestream2char(name, mRawData, event_offset); 600 bytestream2char(name, mRawData, event_offset, sizeof(name));
601 fprintf(fp, "\t\tquaternion %s\n", name); 601 fprintf(fp, "\t\tquaternion %s\n", name);
602 bytestream2char(name, mRawData, event_offset); 602 bytestream2char(name, mRawData, event_offset, sizeof(name));
603 fprintf(fp, "\t\tquaternion %s\n", name); 603 fprintf(fp, "\t\tquaternion %s\n", name);
604 break; 604 break;
605 case LSTT_NOT_AT_ROT_TARGET: // LSTT_NOT_AT_TARGET 605 case LSTT_NOT_AT_ROT_TARGET: // LSTT_NOT_AT_TARGET
606 bytestream2char(name, mRawData, event_offset); 606 bytestream2char(name, mRawData, event_offset, sizeof(name));
607 fprintf(fp, "%s\n", name); 607 fprintf(fp, "%s\n", name);
608 break; 608 break;
609 case LSTT_RTPERMISSIONS: // LSTT_RTPERMISSIONS 609 case LSTT_RTPERMISSIONS: // LSTT_RTPERMISSIONS
610 bytestream2char(name, mRawData, event_offset); 610 bytestream2char(name, mRawData, event_offset, sizeof(name));
611 fprintf(fp, "%s\n", name); 611 fprintf(fp, "%s\n", name);
612 fprintf(fp, "\t\tinteger %s\n", name); 612 fprintf(fp, "\t\tinteger %s\n", name);
613 bytestream2char(name, mRawData, event_offset); 613 bytestream2char(name, mRawData, event_offset, sizeof(name));
614 break; 614 break;
615 case LSTT_HTTP_RESPONSE: // LSTT_REMOTE_DATA ?!?!?! 615 case LSTT_HTTP_RESPONSE: // LSTT_REMOTE_DATA ?!?!?!
616 bytestream2char(name, mRawData, event_offset); 616 bytestream2char(name, mRawData, event_offset, sizeof(name));
617 fprintf(fp, "%s\n", name); 617 fprintf(fp, "%s\n", name);
618 bytestream2char(name, mRawData, event_offset); 618 bytestream2char(name, mRawData, event_offset, sizeof(name));
619 fprintf(fp, "\t\tkey %s\n", name); 619 fprintf(fp, "\t\tkey %s\n", name);
620 bytestream2char(name, mRawData, event_offset); 620 bytestream2char(name, mRawData, event_offset, sizeof(name));
621 fprintf(fp, "\t\tinteger %s\n", name); 621 fprintf(fp, "\t\tinteger %s\n", name);
622 bytestream2char(name, mRawData, event_offset); 622 bytestream2char(name, mRawData, event_offset, sizeof(name));
623 fprintf(fp, "\t\tlist %s\n", name); 623 fprintf(fp, "\t\tlist %s\n", name);
624 bytestream2char(name, mRawData, event_offset); 624 bytestream2char(name, mRawData, event_offset, sizeof(name));
625 fprintf(fp, "\t\tstring %s\n", name); 625 fprintf(fp, "\t\tstring %s\n", name);
626 break; 626 break;
627 default: 627 default:
@@ -1210,7 +1210,7 @@ void print_pushargs(FILE *fp, U8 *buffer, S32 &offset, S32 tabs)
1210 char arg[1024]; /*Flawfinder: ignore*/ 1210 char arg[1024]; /*Flawfinder: ignore*/
1211 lso_print_tabs(fp, tabs); 1211 lso_print_tabs(fp, tabs);
1212 fprintf(fp, "[0x%X]\tPUSHARGS ", offset++); 1212 fprintf(fp, "[0x%X]\tPUSHARGS ", offset++);
1213 bytestream2char(arg, buffer, offset); 1213 bytestream2char(arg, buffer, offset, sizeof(arg));
1214 fprintf(fp, "%s\n", arg); 1214 fprintf(fp, "%s\n", arg);
1215} 1215}
1216 1216