diff options
author | Thomas Deutschmann <whissi@gentoo.org> | 2021-03-30 10:59:39 +0200 |
---|---|---|
committer | Thomas Deutschmann <whissi@gentoo.org> | 2021-04-01 00:04:14 +0200 |
commit | 5ff1d6955496b3cf9a35042c9ac35db43bc336b1 (patch) | |
tree | 6d470f7eb448f59f53e8df1010aec9dad8ce1f72 /psi/apitest.c | |
parent | Import Ghostscript 9.53.1 (diff) | |
download | ghostscript-gpl-patches-5ff1d6955496b3cf9a35042c9ac35db43bc336b1.tar.gz ghostscript-gpl-patches-5ff1d6955496b3cf9a35042c9ac35db43bc336b1.tar.bz2 ghostscript-gpl-patches-5ff1d6955496b3cf9a35042c9ac35db43bc336b1.zip |
Import Ghostscript 9.54ghostscript-9.54
Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
Diffstat (limited to 'psi/apitest.c')
-rw-r--r-- | psi/apitest.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/psi/apitest.c b/psi/apitest.c index 6f5bc41d..fbd12f50 100644 --- a/psi/apitest.c +++ b/psi/apitest.c @@ -72,7 +72,7 @@ static void *gs_main(void *arg) gsargv[i] = my_argv[i]; gsargv[my_argv_file] = text; gsargc = my_argc; - + strncpy(text, my_argv[my_argv_file], sizeof(text)); text[sizeof(text)-1]=0; pos = strlen(text); @@ -111,11 +111,11 @@ int main(int argc, char *argv[]) my_argc = argc; my_argv = argv; - + for (i=0; i < argc; i++) if (!strcmp(argv[i], "-o")) break; - + if (i >= argc-1) { fprintf(stderr, "Expected a -o argument to rewrite!\n"); |