Skip to content

Instantly share code, notes, and snippets.

@mistydemeo
Created August 16, 2014 22:57
Show Gist options
  • Save mistydemeo/be4f4c8010aa1662ef43 to your computer and use it in GitHub Desktop.
Save mistydemeo/be4f4c8010aa1662ef43 to your computer and use it in GitHub Desktop.
Index: nethack/src/dialog.c
===================================================================
--- nethack/src/dialog.c (revision e389814404adba27eaf9312d711cc7e8d3248650)
+++ nethack/src/dialog.c (revision 8771d1b602666bf76b6b47ddf95487b648e78d93)
@@ -215,5 +215,9 @@
{
int key;
- char prompt[strlen(query) + strlen(resp) + 8];
+ /*
+ * "query [resp] (y) \0"
+ * 12 3456789
+ */
+ char prompt[strlen(query) + strlen(resp) + 9];
char *rb;
char respbuf[strlen(resp) + 1];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment