Yes, s7 could null-terminate the string, but it would need to make room for the string + the null, copy the string, etc. s7_load does this (actually it adds 2 nulls -- I wonder what that's about...). I was hoping to avoid the copy and eventual free.
I added an error check to s7_load_c_string -- maybe it should warn about the missing 0, then go ahead and copy the string, etc. _______________________________________________ Cmdist mailing list [email protected] https://cm-mail.stanford.edu/mailman/listinfo/cmdist
