author | llornkcor <llornkcor> | 2004-01-18 05:12:31 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2004-01-18 05:12:31 (UTC) |
commit | a5a10ccc4b39e9ec21b1774713745b31f47a5133 (patch) (unidiff) | |
tree | 49701a63648b8ea69a1c47accb700ee5085a7509 /core/applets/screenshotapplet/screenshot.cpp | |
parent | f5d28a9b86f5fdf8b4512d34c34e77284756f95c (diff) | |
download | opie-a5a10ccc4b39e9ec21b1774713745b31f47a5133.zip opie-a5a10ccc4b39e9ec21b1774713745b31f47a5133.tar.gz opie-a5a10ccc4b39e9ec21b1774713745b31f47a5133.tar.bz2 |
anti anti debug
Diffstat (limited to 'core/applets/screenshotapplet/screenshot.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/applets/screenshotapplet/screenshot.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/applets/screenshotapplet/screenshot.cpp b/core/applets/screenshotapplet/screenshot.cpp index 99effa5..5f83539 100644 --- a/core/applets/screenshotapplet/screenshot.cpp +++ b/core/applets/screenshotapplet/screenshot.cpp | |||
@@ -450,26 +450,26 @@ void ScreenshotControl::performGrab() | |||
450 | "Content-length: %3\n" // 3: content length | 450 | "Content-length: %3\n" // 3: content length |
451 | "Content-Type: image/png\n" | 451 | "Content-Type: image/png\n" |
452 | "Host: %4\n" // 4: scap host | 452 | "Host: %4\n" // 4: scap host |
453 | "\n"; | 453 | "\n"; |
454 | 454 | ||
455 | 455 | ||
456 | header = header.arg( SCAP_model).arg( ::getenv( "USER" ) ).arg( img.numBytes() ).arg( SCAP_hostname ); | 456 | header = header.arg( SCAP_model).arg( ::getenv( "USER" ) ).arg( img.numBytes() ).arg( SCAP_hostname ); |
457 | qDebug(header); | 457 | qDebug(header); |
458 | 458 | ||
459 | if ( !pix.isNull() ) { | 459 | if ( !pix.isNull() ) { |
460 | const char *ascii = header.latin1( ); | 460 | const char *ascii = header.latin1( ); |
461 | uint ascii_len = ::strlen( ascii ); | 461 | uint ascii_len = ::strlen( ascii ); |
462 | // ::write ( sock, ascii, ascii_len ); | 462 | ::write ( sock, ascii, ascii_len ); |
463 | // ::write ( sock, img.bits(), img.numBytes() ); | 463 | ::write ( sock, img.bits(), img.numBytes() ); |
464 | 464 | ||
465 | ok = true; | 465 | ok = true; |
466 | } | 466 | } |
467 | } | 467 | } |
468 | ::close ( sock ); | 468 | ::close ( sock ); |
469 | } | 469 | } |
470 | } | 470 | } |
471 | if ( ok ) { | 471 | if ( ok ) { |
472 | QMessageBox::information( 0, tr( "Success" ), QString( "<p>%1</p>" ).arg ( tr( "Screenshot was uploaded to %1" )).arg( SCAP_hostname )); | 472 | QMessageBox::information( 0, tr( "Success" ), QString( "<p>%1</p>" ).arg ( tr( "Screenshot was uploaded to %1" )).arg( SCAP_hostname )); |
473 | } else { | 473 | } else { |
474 | QMessageBox::warning( 0, tr( "Error" ), QString( "<p>%1</p>" ).arg( tr( "Connection to %1 failed." )).arg( SCAP_hostname )); | 474 | QMessageBox::warning( 0, tr( "Error" ), QString( "<p>%1</p>" ).arg( tr( "Connection to %1 failed." )).arg( SCAP_hostname )); |
475 | } | 475 | } |