I have a couple of ideas. The first is that you're not using the function correctly. Perhaps you should read the documentation for this "safe" function and use it correctly.
The second is any time you add characters to the scanf(), other than the specifiers, these characters must be input by the user as well. Try getting rid of that end of line character in the specifier string.