logoalt Hacker News

Panzerschrektoday at 6:05 AM1 replyview on HN

This doesn't look good:

  c8 buf [SP_PATH_MAX] = sp_zero;
  sp_cstr_copy_to_n(path, len, buf, SP_PATH_MAX);
since

  #define SP_PATH_MAX 4096
There should be a fallback for very long paths.

Replies

dboontoday at 7:00 AM

Can you show me a realistic case with a longer path?

show 1 reply