1
0
Fork 0
mirror of https://codeberg.org/noisytoot/notnotdnethack.git synced 2025-08-13 08:01:40 +01:00

Merge pull request #1106 from NeroOneTrueKing/patch-fix-ssuffix

Fix ssuffix buffer management
This commit is contained in:
Chris-plus-alphanumericgibberish 2020-09-06 14:26:54 -04:00 committed by GitHub
commit 9dc615292d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -162,7 +162,7 @@ s_suffix(s) /* return a name converted to possessive */
const char *s;
{
#define SSUFFIX_BUFFERS 3
Static char buf[BUFSZ][SSUFFIX_BUFFERS];
Static char buf[SSUFFIX_BUFFERS][BUFSZ];
static int i = 0;
i = (i + 1) % SSUFFIX_BUFFERS;