X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Flibpspp%2Fstr.c;h=5aa7e41594e9ab989ac7a77dcafe6d8802e49fa8;hb=92c31025565a5b5c270c83b0208ab46a90e9b64b;hp=3fa2fbe9a75fbe48d0ed75dc48a1b32916b0ef88;hpb=d6fb2728eb8a99e89165c45d8e5d4a482114d3a0;p=pspp diff --git a/src/libpspp/str.c b/src/libpspp/str.c index 3fa2fbe9a7..5aa7e41594 100644 --- a/src/libpspp/str.c +++ b/src/libpspp/str.c @@ -189,7 +189,7 @@ buf_copy_rpad (char *dst, size_t dst_size, void str_copy_rpad (char *dst, size_t dst_size, const char *src) { - if (dst_size > 0) + if (dst_size > 0) { size_t src_len = strlen (src); if (src_len < dst_size - 1) @@ -1523,7 +1523,7 @@ ds_put_c_format (struct string *st, const char *format, ...) } -/* Formats FORMAT as a printf string, using fmt_func (a snprintf like function) +/* Formats FORMAT as a printf string, using fmt_func (a snprintf like function) and appends the result to ST. */ static void ds_put_vformat_int (struct string *st, const char *format, va_list args_, @@ -1575,7 +1575,7 @@ ds_put_vformat (struct string *st, const char *format, va_list args_) ds_put_vformat_int (st, format, args_, vsnprintf); } -/* Formats FORMAT as a printf string, as if in the C locale, +/* Formats FORMAT as a printf string, as if in the C locale, and appends the result to ST. */ void ds_put_c_vformat (struct string *st, const char *format, va_list args_)