Skip to content
Snippets Groups Projects
Commit d3093c78 authored by Eric Vidal's avatar Eric Vidal :speech_balloon:
Browse files

append string with 0

parent feaaa521
No related branches found
No related tags found
No related merge requests found
......@@ -33,16 +33,17 @@
unsigned int VERBOSITY = 1 ;
#define USAGE "66-parser [ -h ] [ -v verbosity ] service destination"
#define USAGE "66-parser [ -h ] [ -v verbosity ] [ -f ] service destination"
static inline void info_help (void)
{
static char const *help =
"66-parser <options> dir service\n"
"66-parser <options> service destination\n"
"\n"
"options :\n"
" -h: print this help\n"
" -v: increase/decrease verbosity\n"
" -f: force to overwrite existing destination\n"
;
if (buffer_putsflush(buffer_1, help) < 0)
......@@ -73,6 +74,7 @@ static void setname(char *name,char const *sv)
svlen++ ;
size_t svnamelen = slen - svlen ;
memcpy(name,sv+svlen,svnamelen) ;
name[svnamelen] = 0 ;
}
int main(int argc, char const *const *argv,char const *const *envp)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment