]> git.itanic.dy.fi Git - scan-pagemap/commit
parse_maps: Fix issues with white space in file names
authorTimo Kokkonen <timo.t.kokkonen@iki.fi>
Thu, 12 Jul 2012 14:41:49 +0000 (17:41 +0300)
committerTimo Kokkonen <timo.t.kokkonen@iki.fi>
Thu, 12 Jul 2012 14:41:49 +0000 (17:41 +0300)
commit8b98106853f40e247b17e44e75a55f3cfa234c5d
tree699feb37e05b17d13506700c5e081ee8194f71f0
parent4e1af4733669d840d1591d870b3fdbe1c717e800
parse_maps: Fix issues with white space in file names

If there is any white space character in the file name field, sscanf
would only copy the file name part until the first white space and
leave out everything else.

The fix is trivial; we will use the %n with sscanf to find out all the
chars before the file name part and then skip that part when using
strncpy to copy the file name.

Signed-off-by: Timo Kokkonen <timo.t.kokkonen@iki.fi>
parse.c