z-form.c comments...

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • fruviad
    Apprentice
    • Jan 2011
    • 74

    z-form.c comments...

    z-form.c has the following in the initial comments block following the GPL and a few include statements:

    38 * Note that some "limitations" are enforced by the current implementation,
    39 * for example, no "format sequence" can exceed 100 characters, including any
    40 * "length" restrictions, and the result of combining and "format sequence"
    41 * with the relevent "arguments" must not exceed 1000 characters.


    Should the "and the result of combining and" on line 40 actually read "and the result of combining any"?

    source (pun intended): https://github.com/angband/angband/b...r/src/z-form.c
  • Pete Mack
    Prophet
    • Apr 2007
    • 6883

    #2
    Yes, though it looks like the actual limits are 128 and 1024, respectively.
    Code:
    	/* Format sequence */
    	char aux[128];
    
    	/* Resulting string */
    	char tmp[1024];

    Comment

    Working...
    😀
    😂
    🥰
    😘
    🤢
    😎
    😞
    😡
    👍
    👎