Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 198080 Details for
Bug 277937
x11-misc/xplanet: fails to build with gcc-4.4
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
a bugfix from upstream, from Suse
xplanet_r153.patch (text/plain), 626 bytes, created by
Zeev Tarantov
on 2009-07-15 17:41:00 UTC
(
hide
)
Description:
a bugfix from upstream, from Suse
Filename:
MIME Type:
Creator:
Zeev Tarantov
Created:
2009-07-15 17:41:00 UTC
Size:
626 bytes
patch
obsolete
>diff --git a/trunk/src/libimage/bmp.c b/trunk/src/libimage/bmp.c >index e4ed45b..615a742 100644 >--- a/trunk/src/libimage/bmp.c >+++ b/trunk/src/libimage/bmp.c >@@ -61,10 +61,10 @@ write_bmp(const char *filename, int width, int height, char *rgb) > struct BMPHeader bmph; > > /* The length of each line must be a multiple of 4 bytes */ >- > bytesPerLine = (3 * (width + 1) / 4) * 4; > >- strcpy(bmph.bfType, "BM"); >+ /* copy only "BM" without a terminating null byte */ >+ strncpy(bmph.bfType, "BM", 2); > bmph.bfOffBits = 54; > bmph.bfSize = bmph.bfOffBits + bytesPerLine * height; > bmph.bfReserved = 0;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 277937
:
198055
| 198080 |
198081
|
198082
|
198084