projects
/
platform
/
upstream
/
multipath-tools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
0402af3
)
[libmultipath] '\0'-terminate snprint_*() buffers
author
root
<root@xa-s05.(none)>
Tue, 23 Aug 2005 15:02:44 +0000
(17:02 +0200)
committer
root
<root@xa-s05.(none)>
Tue, 23 Aug 2005 15:02:44 +0000
(17:02 +0200)
libmultipath/print.c
patch
|
blob
|
history
diff --git
a/libmultipath/print.c
b/libmultipath/print.c
index
0a61eb3
..
0ad4857
100644
(file)
--- a/
libmultipath/print.c
+++ b/
libmultipath/print.c
@@
-130,6
+130,7
@@
snprint_map (char * line, int len, char * format,
} while (*f++);
line[c - line - 1] = '\n';
} while (*f++);
line[c - line - 1] = '\n';
+ line[c - line] = '\0';
return (c - line);
}
return (c - line);
}
@@
-247,6
+248,7
@@
snprint_path (char * line, int len, char * format, struct path * pp,
} while (*f++);
line[c - line - 1] = '\n';
} while (*f++);
line[c - line - 1] = '\n';
+ line[c - line] = '\0';
return (c - line);
}
return (c - line);
}