X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=inline;f=src%2Flanguage%2Futilities%2Fset.q;h=710bc2f44e44d5372e960bc7a1433109427dd1e4;hb=ccaf88efae9f6f4d93d7812834c412e8fd511bb2;hp=f640bcbd65b6a5e6949eb1a1e95c26400c763a08;hpb=5428c2890320da95503876bd04cbd523ddcd4447;p=pspp diff --git a/src/language/utilities/set.q b/src/language/utilities/set.q index f640bcbd65..710bc2f44e 100644 --- a/src/language/utilities/set.q +++ b/src/language/utilities/set.q @@ -567,7 +567,7 @@ stc_custom_format (struct lexer *lexer, struct dataset *ds UNUSED, struct cmd_se if (!fmt_check_output (&fmt)) return 0; - + if (fmt_is_string (fmt.type)) { char str[FMT_STRING_LEN_MAX + 1]; @@ -906,7 +906,7 @@ show_current_directory (const struct dataset *ds UNUSED) { len <<= 1; buf = xrealloc (buf, len); - } + } while (NULL == (wd = getcwd (buf, len))); return wd;