-
Notifications
You must be signed in to change notification settings - Fork 306
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Increase length for UID to 20 (closes #444)
- Loading branch information
1 parent
77eb456
commit a7b01a7
Showing
1 changed file
with
2 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
a7b01a7
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should the size of char user not be 21?
Tested using max int according to "google" the largest possible UID which has 10 positions + length of /run/user/ (10) = 20 and + 1 for the 0 terminator
The same code using 20 results in the 7 not being retained in user[20] and replaced by \0