summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys-utils/readprofile.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys-utils/readprofile.c b/sys-utils/readprofile.c
index 3ba866e24..39a24deda 100644
--- a/sys-utils/readprofile.c
+++ b/sys-utils/readprofile.c
@@ -298,7 +298,7 @@ int main(int argc, char **argv)
err(EXIT_FAILURE, "%s", mapFile);
while (fgets(mapline, S_LEN, map)) {
- if (sscanf(mapline, "%llx %s %s", &fn_add, mode, fn_name) != 3)
+ if (sscanf(mapline, "%llx %7[^\n ] %127[^\n ]", &fn_add, mode, fn_name) != 3)
errx(EXIT_FAILURE, _("%s(%i): wrong map line"), mapFile,
maplineno);
/* only elf works like this */
@@ -319,7 +319,7 @@ int main(int argc, char **argv)
unsigned int this = 0;
int done = 0;
- if (sscanf(mapline, "%llx %s %s", &next_add, mode, next_name) != 3)
+ if (sscanf(mapline, "%llx %7[^\n ] %127[^\n ]", &next_add, mode, next_name) != 3)
errx(EXIT_FAILURE, _("%s(%i): wrong map line"), mapFile,
maplineno);
header_printed = 0;