Addressing feedback and fixing a bug

This commit is contained in:
Parnell Springmeyer
2017-02-14 07:38:45 -06:00
parent 467bb3f674
commit fb6d13c01a
3 changed files with 4 additions and 6 deletions
+1 -1
View File
@@ -165,7 +165,7 @@ int main(int argc, char * * argv)
// should safely fit within the PATH_MAX system limit. Though I'm
// not positive it's safe...
char selfPath[PATH_MAX];
int selfPathSize = readlink("/proc/self/exe", selfPath, sizeof(selfPath) - 1);
int selfPathSize = readlink("/proc/self/exe", selfPath, sizeof(selfPath));
assert(selfPathSize > 0);