diff options
author | Christian Limpach <Christian.Limpach@xensource.com> | 2007-01-04 15:50:08 +0000 |
---|---|---|
committer | Christian Limpach <Christian.Limpach@xensource.com> | 2007-01-04 15:50:08 +0000 |
commit | a9aa1a0d2904e322276d5c3cefdef465128f5516 (patch) | |
tree | 142438bc201c5558895e69513f7a415a4387a1ae /patches | |
parent | df7005672dcf38de4a0d820c90f1421a39ce66ff (diff) | |
download | xen-a9aa1a0d2904e322276d5c3cefdef465128f5516.tar.gz xen-a9aa1a0d2904e322276d5c3cefdef465128f5516.tar.bz2 xen-a9aa1a0d2904e322276d5c3cefdef465128f5516.zip |
[linux] Fix vsnprintf patch not to write null byte past the end of the buffer.
Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
Diffstat (limited to 'patches')
-rw-r--r-- | patches/linux-2.6.16.33/vsnprintf.patch | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/patches/linux-2.6.16.33/vsnprintf.patch b/patches/linux-2.6.16.33/vsnprintf.patch index 69a93fa5c5..3e32773986 100644 --- a/patches/linux-2.6.16.33/vsnprintf.patch +++ b/patches/linux-2.6.16.33/vsnprintf.patch @@ -203,7 +203,7 @@ index b07db5c..f595947 100644 + if (str < end) + *str = '\0'; + else -+ *end = '\0'; ++ end[-1] = '\0'; + } + /* the trailing null byte doesn't count towards the total */ return str-buf; |