[OCLUG-devel] malloc() woes
James Colannino
james at colannino.org
Sun May 29 12:12:55 PDT 2005
James Colannino wrote:
>if (buffer[BUFFER_SIZE] != '\n') {
>
>
By the way, probably not a big deal since this doesn't concern my
question, but since arrays start at 0, just for the record I'll change
this to:
if (buffer[BUFFER_SIZE - 1] != '\n') {
or maybe:
if *(buffer + BUFFER_SIZE) != '\n') {
James
--
My blog: http://www.crazydrclaw.com/
My homepage: http://james.colannino.org/
"A well regulated militia being necessary to the security of a free
state, THE RIGHT of the people to keep and bear arms SHALL NOT BE
INFRINGED." --United States Constitution, Second Ammendment
More information about the OCLUG-devel
mailing list