This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: [PATCH] Fix ar -M



> +  sprintf(tname, "%.*stmp-%s", (int) (bname - name), name, bname);

I wonder if we can count on sprintf printing "" with bname-name is
zero?  I know if you use %.*c with zero, it prints one character.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]