mode of popen()




I found that the mode string to popen() at
gnome-libs/tools/convertrgb/convertrgb.c should be wrong.

It looks like this:

  sf = popen(cmd, "rb");

The mode character "b" is used simply for compatibility with
ANSI C and has no effect, but it will cause problem under
OpenBSD, because OpenBSD expects a "+" following the
"b".

Patch attached.

// Shawn

patch.convertrgb



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