Added the correct magic number, added a comment explaining the magic number, and error checking for null strings in the find_link function