lib: sdiff (wrong?)