sscanf doesn't accept [^] as a valid set
Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=4377
Reported by Jonas Wallden jonasw@roxen.com
The following statement ought to scan past the sequence of ^ chars since there is no conflicting interpretation of [^]. (Negating the empty set is rather unusable in comparison.)
sscanf("^^^^^^^^hello", "%*[^]%s", string res) && res;