Ethereal-dev: [Ethereal-dev] prefs_set_pref modifies input

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Michael Cohen <michael.cohen@xxxxxxxxxxxxxxx>
Date: Sun, 22 May 2005 23:07:20 +1000
Hi List,
  While working on the python binding I noticed that prefs_set_pref
  modifies its input char *. I understand that normally it operates on
  argv from the stack so it doesnt matter much. Is this the correct
  behaviour (if so it should have lots of WARNINGS)?

  I can wrap in strdup/free, or should it do its own strdup/free?

  Michael.