[Info-vax] LGI Routines (or how I'm trying to save my users from themselves)
Tim Lovern
1tim.lovern at gmail.com
Tue Mar 5 14:55:01 EST 2019
On Tuesday, March 5, 2019 at 12:07:58 PM UTC-7, Simon Clubley wrote:
>
>
> One thing immediately comes to mind from looking at those printf()
> statements. Are you by any chance adding a null to the username and
> password and if you are, are you including that null in the descriptor
> length ?
>
> > any suggestions would be very appreciated.
> >
>
> If that isn't it, you might get more help if you can post a complete
> compilable standalone example. Constructing the standalone example
> might also help you isolate the problem.
>
> Simon.
>
No, I don't add anything to the descriptors, just using the ones returned from the LGI routines themselves. I do declare a couple of pointers to descriptors, namely username, password1, and password2 - just so I can type a little less when accessing the data. Besides, the error occurs at the line:
status = arg_vector->LGI$ICB_PASSWORD(0, &prompt);
which doesn't have any of my descriptors, other than the prompt string. I'd be happy if it were failing outside of this call. but it returns an invalid password error, yet dumping the values shows the data is correct.
More information about the Info-vax
mailing list