Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
100% Quality Score
Upvotes Received
1
Posts with Upvotes
1
Upvoting Members
1
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
0 Endorsements
Ranked #72.8K
~9K People Reached
Favorite Forums
Favorite Tags
c x 2

2 Posted Topics

Member Avatar for tux4life

Yeah anytime you encourage newbie programmers to use some code you should mention any security risks you're aware of. You should do that at the same time that you introduce the code. As you already discussed in earlier comments (so I know you understand this, mvmalderen), this part assumes the …

Member Avatar for Remy1990
0
8K
Member Avatar for jephthah

Both versions of getUserInput will put the null terminator just past the end of returnStr, in returnStr[maxStringLength], if at least maxStringLength-1 characters are read (and there is, as a result, no \n to replace with \0). Try watching, with a debugger, what happens to returnStr when you type at least …

Member Avatar for BNF
1
1K

The End.