Had a "warning: did not change ... in plan9.ini" message when using 9pxeload, but didnt on 9load. changeconf() copies the first bytes of the new configuration line to pref+1, but strchr() starts looking for the = at pref. But pref[0] is not initialized here. (It is later used to store an '\n'). This patch changes strchr(pref, '=') to strchr(pref+1, '='). This fixes the problem for me.
|