MESSAGE
DATE | 2004-04-22 |
FROM | Billy
|
SUBJECT | Re: [hangout] Debugging cdparanoia in C
|
On Thu, Apr 22, 2004 at 06:23:06AM -0400, Ruben I Safir wrote: > > Also look at line 188 in utils.h > > First, I'm confused why we have CODE in a header file. > > in function idmessage() at utils.h:188 > > buffer=malloc(strlen(f)+strlen(s)+10); > > What happened to the sizeof macro?
sizeof doesn't help with strings.
It boils down (at compile-time) into sizes of objects.
sizeof(s) ==> sizeof(char*) ==> 4.
____________________________ NYLXS: New Yorker Free Software Users Scene Fair Use - because it's either fair use or useless.... NYLXS is a trademark of NYLXS, Inc
|
|