--------------000405080706010208070702
Content-Type: text/html; charset="utf-8"
Content-Transfer-Encoding: 8bit

<html style="direction: ltr;">
  <head>

    <meta http-equiv="content-type" content="text/html; charset=utf-8">
    <style type="text/css">body p { margin-bottom: 0cm; margin-top: 0pt; } </style>
  </head>
  <body style="direction: ltr;" bidimailui-charset-is-forced="true"
    bgcolor="#FFFFFF" text="#000000">
    <font face="Tahoma">So, <br>
      <br>
      I'm having a weird issue with ffi (most likely because my lack of
      knowledge in 'C'). <br>
      <br>
      The code is here: <font color="#000099"><a class="moz-txt-link-freetext" href="https://gist.github.com/bararchy/c79be78a82c64eb6df41#file-the_ruby_code-rb">https://gist.github.com/bararchy/c79be78a82c64eb6df41#file-the_ruby_code-rb</a></font><br>
      A C code?? reference is here: <font color="#000099"><a class="moz-txt-link-freetext" href="https://gist.github.com/bararchy/c79be78a82c64eb6df41#file-th_c_code-c">https://gist.github.com/bararchy/c79be78a82c64eb6df41#file-th_c_code-c</a></font><br>
      And my error is here: <font color="#000099"><a class="moz-txt-link-freetext" href="https://gist.github.com/bararchy/c79be78a82c64eb6df41#file-my_error-sh">https://gist.github.com/bararchy/c79be78a82c64eb6df41#file-my_error-sh</a></font><br>
      <br>
      Overall it looks like what ffi is sending to the C wrapper is not
      what the C wrapper expects ? or something... <br>
      <br>
      Thanks,<br>
    </font>
    <div class="moz-signature">-- <br>
      <meta http-equiv="content-type" content="text/html; charset=utf-8">
      <style type="text/css">body p { margin-bottom: 0cm; margin-top: 0pt; } </style>
      <title></title>
      <div bidimailui-direction-uniformity="ltr">
        <div bidimailui-direction-uniformity="ltr" dir="ltr">
          <div bidimailui-direction-uniformity="ltr"
            style="text-align:left"><b><span
style="font-size:13.0pt;font-family:&quot;Candara&quot;,&quot;sans-serif&quot;;color:#404040"><img
                  alt="Safe-T.com"
                  src="cid:part1.07080006.05020107 / safe-t.com"
                  height="40" width="122"><br>
                Bar Hofesh</span></b><span
style="font-family:&quot;Candara&quot;,&quot;sans-serif&quot;;color:#404040"><br>
            </span><span
style="font-family:&quot;Candara&quot;,&quot;sans-serif&quot;;color:#404040"></span></div>
        </div>
        <br>
      </div>
    </div>
  </body>
</html>

--------------000405080706010208070702
Content-Type: image/jpeg; name="image002.jpg"
Content-Transfer-Encoding: base64
Content-ID: <part1.07080006.05020107 / safe-t.com>
Content-Disposition: inline; filename="image002.jpg"

/9j/4AAQSkZJRgABAQEAYABgAAD/2wBDAAoHBwkHBgoJCAkLCwoMDxkQDw4ODx4WFxIZJCAm
JSMgIyIoLTkwKCo2KyIjMkQyNjs9QEBAJjBGS0U+Sjk/QD3/2wBDAQsLCw8NDx0QEB09KSMp
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT3/wAAR
CAAoAHoDASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAA
AgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkK
FhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWG
h4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl
5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREA
AgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYk
NOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOE
hYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk
5ebn6Onq8vP09fb3+Pn6/9oADAMBAAIRAxEAPwD2amvIka7pHVR6scVHd3C2lpLPJ92NSxrz
u9v5tQnaW4k3E9Fz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