Since there's only one instance that needs to be converted, it doesn't
look like a big job.  :)


Mark Post 

-----Original Message-----
From: Martin Schwidefsky [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, September 13, 2006 11:56 AM
To: Post, Mark K
Cc: [email protected]
Subject: RE: gcc 3.4.6 converting sprintf to strcpy calls causing
kernellinkedit failure

On Wed, 2006-09-13 at 11:51 -0400, Post, Mark K wrote:
> Yeah, I know the cause, I just wasn't at all sure about the cure.
Seems
> to me it would be even easier to manually convert
sprintf(buf,"%s",str)
> to strcpy(buf,str) then, wouldn't it?  That's what someone did with
> fs/reiserfs/prints.c

Well, a matter of perspective. I think it is easier to simply define a
strcpy function that the gcc can call, instead of converting all
occurrences of sprintf(buf,"%s",str).

-- 
blue skies,
  Martin.

Martin Schwidefsky
Linux for zSeries Development & Services
IBM Deutschland Entwicklung GmbH

"Reality continues to ruin my life." - Calvin.

----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390

Reply via email to