c++ - Redis client command error -


i using hiredis. hiredis has api:

  void* rediscommand(rediscontext *c, char *format, ...) 

if format c string contain '\0', format truncated. how fix this?

c , c++ different languages.

in c, string, definition, contiguous sequence of non-null characters followed , including null character terminator. else not string.

if using function accepts c string, nothing else valid , design-decision , not "bug" requiring "fix". if source-code hiredis available you, might able gain additional insight examining source-code.


Comments