lkml.org 
[lkml]   [1997]   [Dec]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: Some 2.1.72 odd things.
From
Date
Michael Elizabeth Chastain <mec@shout.net> writes:

> fprintf(stderr, prompt);
>
> ... where it should say:
>
> fprintf(stderr, "%s", prompt);

No, fprintf is overkill; it should say
fwrite(prompt, 1, strlen(prompt), stderr);

--
Aaron M. Ucko <amu@mit.edu> (finger amu@monk.mit.edu) [Stark raving sane]

\
 
 \ /
  Last update: 2005-03-22 13:40    [W:0.024 / U:6.500 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site