Changed all the sscanf calls to use the %n directive. By comparing themaster
commit8d7f7516f38d5369d3ef0c4ebf9fd0811d4717f5
authorStefan 'psYchotic' Zwanenburg <stefanhetzwaantje@gmail.com>
Tue, 3 Nov 2009 22:23:54 +0000 (3 23:23 +0100)
committerStefan 'psYchotic' Zwanenburg <stefanhetzwaantje@gmail.com>
Tue, 3 Nov 2009 22:26:06 +0000 (3 23:26 +0100)
tree4c91db6282a1cc336d7d017b9c1f7e7ce7800936
parent237a69896133b44d3eba839968189a1f6fb01354
Changed all the sscanf calls to use the %n directive. By comparing the
    result of this directive with the length of the token, you can be
    sure the user entered an integer only, and not something like '1a'
    (which would have been valid before, and would have yielded 1).
add.c
del.c
mark.c
show.c