Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 311460 Details for
Bug 426011
BadValue (integer parameter out of range for operation)
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
patch which fixes finding resolutions at startup
bzflag-2.0.12-findresolutions.patch (text/plain), 972 bytes, created by
Nils Philippsen
on 2008-07-10 08:47:41 UTC
(
hide
)
Description:
patch which fixes finding resolutions at startup
Filename:
MIME Type:
Creator:
Nils Philippsen
Created:
2008-07-10 08:47:41 UTC
Size:
972 bytes
patch
obsolete
>diff -up bzflag-2.0.12/src/platform/BzfDisplay.cxx.findresolutions bzflag-2.0.12/src/platform/BzfDisplay.cxx >--- bzflag-2.0.12/src/platform/BzfDisplay.cxx.findresolutions 2008-04-06 07:30:37.000000000 +0200 >+++ bzflag-2.0.12/src/platform/BzfDisplay.cxx 2008-07-10 10:05:41.000000000 +0200 >@@ -137,9 +137,20 @@ bool BzfDisplay::doSetDefaultResolutio > > int BzfDisplay::findResolution(const char* name) const > { >- for (int i = 0; i < numResolutions; i++) >- if (strcmp(name, resolutions[i]->name) == 0) >+ for (int i = 0; i < numResolutions; i++) { >+ // only compare up to first space character >+ const char *cp1, *cp2; >+ int i1, i2; >+ >+ cp1 = strstr (name, " "); >+ cp2 = strstr (resolutions[i]->name, " "); >+ >+ i1 = cp1 ? (cp1 - name) : strlen (name); >+ i2 = cp2 ? (cp2 - resolutions[i]->name) : strlen (resolutions[i]->name); >+ >+ if ((i1 == i2) && (strncmp(name, resolutions[i]->name, i1 + 1) == 0)) > return i; >+ } > return -1; > } >
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 426011
:
289794
|
289796
| 311460 |
312030
|
312048