CVSROOT:        /cvs
Module name:    src
Changes by:     b...@cvs.openbsd.org    2014/06/01 16:42:45

Modified files:
        lib/libssl/src/crypto/objects: obj_dat.c 

Log message:
Clean up some of the nightmare of string and pointer arithmatic in
this nasty function.

This gets rid of the nasty tmp variables used to hold temporary strings
and the DECIMAL_SIZE hack. it gets rid of the rather pointless null checks
for buf (since the original code dereferences it before checking). It also
gets rid of the insane possibility this could return -1 when stuff is
using the return values to compute lengths All the failure cases now
return 0 and an empty string like the first error case in the original
code.
ok miod@ tedu@

Reply via email to