Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix serverinfo overflow - reduce version cvar #31

Merged

Conversation

ThomasBrierley
Copy link

@ThomasBrierley ThomasBrierley commented Apr 9, 2018

Karnute's (separate) patch should handle actual overflows more gracefully, but this still helps mitigate the chance of it happening a little bit.

Fixes #30

ThomasBrierley and others added 2 commits April 9, 2018 22:34
Mitigate the serverinfo overflow issue by reducing the version cvar
length which is somewhat longer than the official engine by 33 chars.

- Abbreviate PRODUCT_NAME to match official (will affect pid filenames)
- Remove redundant product name from makeFile VERSION
- Reduce git info to rev alone (commit date can be inferred from hash)

Mitigates mickael9#30
The **q** in ioq3 is always lowercase!
@danielepantaleone danielepantaleone merged commit abdd56d into mickael9:urt Apr 10, 2018
@danielepantaleone
Copy link
Collaborator

Looks good to me 👍
I squashed the commits together to keep a cleaner history

@ThomasBrierley
Copy link
Author

Hah 😮 weird, i'm surprised how biddy is able to commit to my fork. Is this some new github thing where there are soft priviledges through PRs? handy I guess.

@mickael9
Copy link
Owner

If you check the Allow edits from maintainers checkbox, committers can push to your branch

@@ -474,7 +474,7 @@ int Q_isnan(float x);
#endif
/*
// if your system does not have lrintf() and round() you can try this block. Please also open a bug report at bugzilla.icculus.org
// or write a mail to the ioq3 mailing list.
// or write a mail to the 3 mailing list.
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oops

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

He didn't fix the typo, did he? 😄

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ya this might be getting too terse :P

Copy link
Collaborator

@BidyBiddle BidyBiddle Apr 10, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh snap, dunno how that ioq3 changed into a 3. Must have been a fail when searching all the ioq3 occurences.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Darn regexp failures 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants