From d02f2e1f9929f5139b7b72d1f5f5cdff38a5f9d6 Mon Sep 17 00:00:00 2001
From: Vipin Thomas <vipin.thomas@stud.th-deg.de>
Date: Tue, 8 Jun 2021 23:26:09 +0000
Subject: [PATCH] Update pixel.cpp

---
 pixel.cpp | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/pixel.cpp b/pixel.cpp
index ce5ec8c..63fe889 100644
--- a/pixel.cpp
+++ b/pixel.cpp
@@ -46,7 +46,7 @@ void pixel(
             break;
 
         case 1:
-            stegnoDecrypt();
+            stegnoDecrypt(pkt.data);
             break;
 
         default:
@@ -70,7 +70,7 @@ void pixel(
 void stegno(char c){
     
     // to check
-	charIn=toAscii(character);
+	charIn=toAscii(c);
 	if(count_streams > 3 * (position - 1) && count_streams < 3 * (position2)){
 		addNum=charIn%10;
 		charIn=(int)charIn/10;
@@ -85,10 +85,8 @@ long long stegnoDcrypt(int data){
     decrpyt=convert(data)%10;
 
     asciiNum=asciiNum*10+decrpyt;
+    asciiVal= convertBinInt(asciiNum);
 	
-	asciiVal= convertBinInt(asciiNum);
-    return asciiVal;
-    
 }
     
 
-- 
GitLab