Yeah, I tried commenting that line out-- issue still remains. Furthermore, the original code (which does not crash) has the same line in it.
Thanks for your input though!
EDIT: I think you got...
Type: Posts; User: jonheese
Yeah, I tried commenting that line out-- issue still remains. Furthermore, the original code (which does not crash) has the same line in it.
Thanks for your input though!
EDIT: I think you got...
Okay, I started writing my standalone program based on this code, but I think I'm misunderstanding the way the "Message" variable works... First, here's my code:
#include <ctype.h>
#include...
I cannot show how I'm calling it because I'm not calling it. I'm essentially following an AIX OS API that tells me I need a C module that has that function in it. Whenever 'passwd' is run on this...
Ooh, good catch... I didn't even notice that errDiff was incremented inside the strLen call... Shouldn't the compiler complain about that?
Anyway, I changed it to:
localMessage =...
Great, thanks!
Regards,
Jon Heese
Yes, I noticed that typo as well, and I fixed it in my code. I think the original author of that code didn't actually test the code before a last-minute modification before posting. It was from...
Great, thanks for the tips! I will definitely look into that.
I have verified that UserName, OldPassword, and NewPassword are valid and not null, but my program doesn't use UserName or...
Okay, so it's been quite a number of years since I've done any C (college?), but I'm a fairly decent programmer in other languages (Java, PHP, Perl, etc.).
I'm writing a C module for AIX to be...