diff options
author | ridiculousfish <corydoras@ridiculousfish.com> | 2011-12-26 19:18:46 -0800 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2011-12-26 19:18:46 -0800 |
commit | 8d2f107d61a8b0e099ab9a59b8a32c236da5a5fc (patch) | |
tree | 89f718ab74f8400332534aee237c6f925348f05c /print_help.cpp | |
parent | 3f16ace6784caab54fb054836ee93902e9701913 (diff) |
Some changes to migrate towards C++ and a multithreaded model
Diffstat (limited to 'print_help.cpp')
-rw-r--r-- | print_help.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/print_help.cpp b/print_help.cpp index 7f25f7f1..40c1723e 100644 --- a/print_help.cpp +++ b/print_help.cpp @@ -21,14 +21,14 @@ void print_help( char *c, int fd ) { char cmd[ CMD_LEN]; int printed = snprintf( cmd, CMD_LEN, "fish -c '__fish_print_help %s >&%d'", c, fd ); - + if( printed < CMD_LEN ) { if( (system( cmd ) == -1) ) { write_loop(2, HELP_ERR, strlen(HELP_ERR)); } - + } - + } |