386915fb7bdbae22f8ed152174d8b8635524c1b2 galt Sun Oct 28 00:51:33 2018 -0700 code review fixes to hgBlat Search ALL. refs #22251 diff --git src/inc/common.h src/inc/common.h index de255cc..5b1fa5b 100644 --- src/inc/common.h +++ src/inc/common.h @@ -1404,32 +1404,32 @@ ; void safecpy(char *buf, size_t bufSize, const char *src); /* copy a string to a buffer, with bounds checking.*/ void safencpy(char *buf, size_t bufSize, const char *src, size_t n); /* copy n characters from a string to a buffer, with bounds checking. * Unlike strncpy, always null terminates the result */ void safecat(char *buf, size_t bufSize, const char *src); /* Append a string to a buffer, with bounds checking.*/ void safencat(char *buf, size_t bufSize, const char *src, size_t n); /* append n characters from a string to a buffer, with bounds checking. */ -void safecatRepeatChar(char *buf, size_t bufSize, const char c, int n); -/* Append a character to a buffer, n times with bounds checking.*/ +void safememset(char *buf, size_t bufSize, const char c, size_t n); +/* Append a character to a buffer repeatedly, n times with bounds checking.*/ char *naForNull(char *s); /* Return 'n/a' if s is NULL, otherwise s. */ char *naForEmpty(char *s); /* Return n/a if s is "" or NULL, otherwise s. */ char *emptyForNull(char *s); /* Return "" if s is NULL, otherwise s. */ char *nullIfAllSpace(char *s); /* Return NULL if s is all spaces, otherwise s. */ char *trueFalseString(boolean b); /* Return "true" or "false" */