FLTK logo

STR #2830

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 Home  |  Articles & FAQs  |  Bugs & Features  |  Documentation  |  Download  |  Screenshots  ]
 

Return to Bugs & Features | Roadmap 1.3 | SVN ⇄ GIT ]

STR #2830

Application:FLTK Library
Status:1 - Closed w/Resolution
Priority:1 - Request for Enhancement, e.g. asking for a feature
Scope:3 - Applies to all machines and operating systems
Subsystem:Core Library
Summary:Fl_Input is limited to 1023 bytes but not documented
Version:1.3-feature
Created By:mingodad
Assigned To:AlbrechtS
Fix Version:1.3.3 (SVN: v10123)
Update Notification:

Receive EMails Don't Receive EMails

Trouble Report Files:

No files


Trouble Report Comments:


Name/Time/Date Text  
 
#1 mingodad
07:30 Apr 29, 2012
Today I was making some tests with on application and tried to paste 3k bytes of text on a Fl_Input and discovered after looking the source code that Fl_Input only manage 1023 bytes (1024 with zero terminator) but the documentation doesn't mention any size limit.

Probably the documentation should be updated to reflect this for developers to know beforehand it's capabilities instead of discover it the hard way (when a user of the application try to input more than 1023 bytes), also multiline that is a FL_Input is limited to the same 1023 bytes.
 
 
#2 matt
09:04 Apr 29, 2012
Oh, I did not know! We should change the code to either make the buffer dynamic, or to cut the remaining chars off with a warning. I'd much prefer the first solution.... .  
 
#3 AlbrechtS
06:25 Nov 27, 2014
Fixed in Subversion repository.

This has been fixed in FLTK 1.3.3 by Manolo, see svn r 10123.

The input size is now unlimited. Please upgrade to FLTK 1.3.3 or later.
 
     

Return to Bugs & Features ]

 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.