diff --git a/src/frontend/cpitf.c b/src/frontend/cpitf.c index c273c9ce5..4041acbc7 100644 --- a/src/frontend/cpitf.c +++ b/src/frontend/cpitf.c @@ -264,6 +264,9 @@ ft_cpinit(void) /* jump over leading spaces */ for (copys = s = cp_tildexpand(Lib_Path); copys && *copys; ) { s = skip_ws(s); +#ifdef OUTDEBUG + printf("cpitf.c, spinit path is %s\n", s); +#endif /* copy s into buf until space is seen, r is the actual position */ for (r = buf; *s && !isspace_c(*s); r++, s++) *r = *s; diff --git a/src/sharedspice.c b/src/sharedspice.c index 3d86f57e7..056f0667a 100644 --- a/src/sharedspice.c +++ b/src/sharedspice.c @@ -1177,6 +1177,13 @@ sh_fputsll(const char *input, FILE* outf) if (noprintfwanted) return -1; +#ifdef OUTDEBUG + /* debug: print into file */ + FILE *fd = fopen("ng-string-out.txt", "a"); + fprintf(fd, "%s", input); + fclose(fd); +#endif + if (outf == stderr) { if (!outstringerr) delstring = outstringerr = copy(input);