Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

char buf[LINE_MAX]

Name: Anonymous 2008-08-26 6:39

Why do programmers still code in arbitrary limits like these?

It breaks when you do
#define LINE_MAX UINT_MAX

Why not redesign so that you use an O(1) space algorithm, or if it can't be avoided, dynamically allocate as much as needed?

Name: Anonymous 2008-08-29 12:08

>>40
Interesting.

Name: Anonymous 2008-08-29 13:40

>>40
Status: RESOLVED FIXED
Comment: Increased buffer size to 8192 bytes.

Name: Anonymous 2008-08-29 15:32

>>1
This is because some programmers aren't bright enough to pick a language that includes real string support, so rather than do all the work required to be safe, they implement lazy hacks. And then the Inter was a Bot.

Name: Anonymous 2011-02-04 14:12


Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List