Skip to content

Commit 0e0541b

Browse files
committed
bin/xbps-query: don't print excessive arguments (to stdout)
1 parent 8f01155 commit 0e0541b

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

bin/xbps-query/main.c

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -243,12 +243,7 @@ main(int argc, char **argv)
243243

244244
if (argc) {
245245
/* trailing parameters */
246-
xbps_error_printf("xbps-query: too many arguments: ");
247-
while (argc) {
248-
printf("%s ", *(argv++));
249-
argc--;
250-
}
251-
printf("\n");
246+
xbps_error_printf("xbps-query: too many arguments\n");
252247
exit(EXIT_FAILURE);
253248
/* NOTREACHED */
254249
}

0 commit comments

Comments
 (0)