Message Area
Casually read the BBS message area using an easy to use interface. Messages are categorized exactly like they are on the BBS. You may post new messages or reply to existing messages!

You are not logged in. Login here for full access privileges.

Previous Message | Next Message | Back to MakeNL Next Generation.  <--  <--- Return to Home Page
   Networked Database  MakeNL Next Generation.   [103 / 109] RSS
 From   To   Subject   Date/Time 
Message   mark lewis    all   makenl msgids   July 29, 2019
 12:21 AM *  

 On 2019 Jul 28 14:14:20, I wrote to you:

 ml> has anyone else noticed that makenl is generating 10 character serial
 ml> numbers?

the problem is here... specifically, %08lx does not set the maximum length...
only the minimum...

    fprintf(MailFILE, "\x01MSGID: %d:%d/%d %08lx\r\n", MyAddress[A_ZONE],
            MyAddress[A_NET], MyAddress[A_NODE], GetSequence());

something like this should work but i'm not a C coder and haven't tried to
actually compile something to test this with...

    char* serialnum = printf("%08lx", GetSequence());
    if (strlen(serialnum) > 8)
    {
      serialnum = serialnum + strlen(serialnum) - 8;
    }
    fprintf(MailFILE, "\x01MSGID: %d:%d/%d %s\r\n", MyAddress[A_ZONE],
            MyAddress[A_NET], MyAddress[A_NODE], serialnum);


)\/(ark

Once men turned their thinking over to machines in the hope that this would set
 them free. But that only permitted other men with machines to enslave them.
... Why do croutons come in airtight packages? It's just stale bread.
---
 * Origin:  (1:3634/12.73)
  Show ANSI Codes | Hide BBCodes | Show Color Codes | Hide Encoding | Hide HTML Tags | Show Routing
Previous Message | Next Message | Back to MakeNL Next Generation.  <--  <--- Return to Home Page

VADV-PHP
Execution Time: 0.0812 seconds

If you experience any problems with this website or need help, contact the webmaster.
VADV-PHP Copyright © 2002-2024 Steve Winn, Aspect Technologies. All Rights Reserved.
Virtual Advanced Copyright © 1995-1997 Roland De Graaf.
v2.0.140505

Warning: Unknown: open(c:\Sessions\sess_ns5jsch95k5d1u5a0949sp5vq7, O_RDWR) failed: No such file or directory (2) in Unknown on line 0 Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (c:\Sessions) in Unknown on line 0 PHP Warning: session_start(): open(c:\Sessions\sess_ns5jsch95k5d1u5a0949sp5vq7, O_RDWR) failed: No such file or directory (2) in D:\wc5\http\public\VADV\include\common.inc.php on line 45 PHP Warning: Unknown: open(c:\Sessions\sess_ns5jsch95k5d1u5a0949sp5vq7, O_RDWR) failed: No such file or directory (2) in Unknown on line 0 PHP Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (c:\Sessions) in Unknown on line 0