Angband.oook.cz
Angband.oook.cz
AboutVariantsLadderForumCompetitionComicScreenshotsFunniesLinks

Go Back   Angband Forums > Angband > Development

Reply
 
Thread Tools Display Modes
Old December 13, 2019, 02:56   #1
fruviad
Apprentice
 
Join Date: Jan 2011
Posts: 53
fruviad is on a distinguished road
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
fruviad is offline   Reply With Quote
Old December 13, 2019, 19:31   #2
Pete Mack
Prophet
 
Join Date: Apr 2007
Location: Seattle, WA
Posts: 5,696
Donated: $40
Pete Mack is on a distinguished road
Yes, though it looks like the actual limits are 128 and 1024, respectively.
Code:
	/* Format sequence */
	char aux[128];

	/* Resulting string */
	char tmp[1024];
Pete Mack is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Pos/Com/Frog Dragon Form CyclopsSlayer Variants 10 July 13, 2018 13:48
A plea for comments Derakon Development 4 May 30, 2011 17:20
Returning to normal form in Oangband jbissell Variants 1 January 8, 2011 03:46
A Few Comments about V Malatar Vanilla 20 January 5, 2010 22:40
3.10 Comments awldune Vanilla 3 January 11, 2009 14:29


All times are GMT +1. The time now is 23:11.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2020, vBulletin Solutions Inc.