Reacted on compiler warnings of Debian Sid

This commit is contained in:
Thomas Schmitt 2019-11-23 14:31:14 +01:00
parent 78a2a377dd
commit c4894d8ae3
3 changed files with 13 additions and 16 deletions

View File

@ -1065,8 +1065,8 @@ char *Text_shellsafe(char *in_text, char *out_text, int flag)
} else {
if(w + 3 > limit) {
overflow:;
strncpy(out_text, "'xorriso: TEXT MUCH TOO LONG ... ",33);
break;
strcpy(out_text, "'xorriso: TEXT MUCH TOO LONG ... '");
return(out_text);
}
out_text[w++]= in_text[i];
}

View File

@ -2497,25 +2497,22 @@ int Xorriso_option_help(struct XorrisO *xorriso, int flag)
};
char *tpt= NULL;
int i,pass;
int i;
Xorriso_restxt(xorriso,"\n");
sprintf(xorriso->result_line,"usage: %s [settings|actions]\n",
xorriso->progname);
Xorriso_result(xorriso,0);
Xorriso_restxt(xorriso,"\n");
for(pass=0;pass<1;pass++) {
for(i=0;1;i++) {
if(pass==0)
tpt= text[i];
if(strcmp(tpt,"@ENDE_OF_HELPTEXT_(HOPEFULLY_UNIQUELY_SILLY_TEXT)@")==0)
break;
sprintf(xorriso->result_line,"%s\n",tpt);
Xorriso_result(xorriso,0);
if(xorriso->request_to_abort)
return(1);
}
for(i=0;1;i++) {
tpt= text[i];
if(strcmp(tpt,"@ENDE_OF_HELPTEXT_(HOPEFULLY_UNIQUELY_SILLY_TEXT)@")==0)
break;
sprintf(xorriso->result_line,"%s\n",tpt);
Xorriso_result(xorriso,0);
if(xorriso->request_to_abort)
return(1);
}
Xorriso_restxt(xorriso,"\n");
return(1);

View File

@ -1 +1 @@
#define Xorriso_timestamP "2019.10.28.143339"
#define Xorriso_timestamP "2019.11.23.132942"