bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug binutils/4356] New: windres fails on files with spaces


From: Nick Clifton
Subject: Re: [Bug binutils/4356] New: windres fails on files with spaces
Date: Fri, 20 Apr 2007 14:24:00 +0100
User-agent: Thunderbird 1.5.0.9 (X11/20061215)

Hi HS,

This does not seem to be fixed in latest CVS because the error is most obviously in binutils/resrc.c (and similar) in function read_rc_file() and look_for_default():
sprintf (cmd, "%s %s %s", preprocessor, preprocargs, filename);

The filename argument MUST be surrounded by "", thus this line should read:
sprintf (cmd, "%s %s \"%s\"", preprocessor, preprocargs, filename);

Easy fix, I'd say.

Would you like to submit a patch that does this then ?

Reproducable on command line using DEFAULT_PREPROCESSOR.

Please could you provide an example of such a command line ?

Cheers
  Nick






reply via email to

[Prev in Thread] Current Thread [Next in Thread]