OSSP CVS Repository

ossp - Difference in ossp-pkg/l2/l2_epreuve.c versions 1.3 and 1.4
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [History

ossp-pkg/l2/l2_epreuve.c 1.3 -> 1.4

--- l2_epreuve.c 2001/08/23 05:32:45     1.3
+++ l2_epreuve.c 2001/08/24 15:15:47     1.4
@@ -82,10 +82,9 @@
         return 1;
 
     /* Need to add extra bytes to string length to allow for the text we add */
-    iMsgSize = strlen(pszArgs[L2_MESSAGEARG]) + strlen(L2_VONBUFSTRING);
+    iMsgSize = strlen(pszArgs[L2_MESSAGEARG]);
     pszMsgIn = malloc(iMsgSize);
     strcpy(pszMsgIn, pszArgs[L2_MESSAGEARG]);
-    strcat(pszMsgIn, L2_VONBUFSTRING);
     iRet = l2_channel_write(pMyBChannel, pszMsgIn, iMsgSize);
     if (iRet != L2_OK)
         return 1;
@@ -96,6 +95,7 @@
     fprintf(stderr, "0x%X octets Speichersize.\n",\
         (int)(*((char **)pMyBChannel->context.vp + 2)));
     fprintf(stderr, *(char **)pMyBChannel->context.vp);
+    fprintf(stderr, " von de Buffer\n");
 
     iRet = l2_channel_flush(pMyBChannel);
     if (iRet != L2_OK)

CVSTrac 2.0.1