ckolivas/cgminer — pull request #591 by dmaxl (2014-05-08 14:50:34+00:00)
Title: Prevent a segfault when writing a config file containing 'rotate' option

When saving a configuration the rotate option is being inadvertently handled as a string option, causing a segfault on line 4937 (opt->u.arg points to an integer, but is cast to char*).

Since rotate is being handled specially a few lines down this patch simply ignores the rotate option when writing the other string parameters to file. There could be other variations on how to handle it.

Credit to LinuxETC and Sling00 for first discovering it.