summaryrefslogtreecommitdiff
path: root/graphics/xfpovray/files/patch-src_show_image.c
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/xfpovray/files/patch-src_show_image.c')
-rw-r--r--graphics/xfpovray/files/patch-src_show_image.c33
1 files changed, 33 insertions, 0 deletions
diff --git a/graphics/xfpovray/files/patch-src_show_image.c b/graphics/xfpovray/files/patch-src_show_image.c
new file mode 100644
index 000000000000..49b4e321e32e
--- /dev/null
+++ b/graphics/xfpovray/files/patch-src_show_image.c
@@ -0,0 +1,33 @@
+--- src/show_image.c.orig Sun Feb 8 04:09:16 1998
++++ src/show_image.c Wed Jun 3 09:38:49 1998
+@@ -13,21 +13,6 @@
+
+ extern OUTPUT_PAGE_S *outputPage;
+
+-
+-/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
+-char *truncate(char *string, char endat)
+-{
+- char *endchar;
+-
+-
+- if ((string != NULL) && (endchar = strrchr(string, endat)) != NULL)
+- *endchar = '\0';
+-
+- return (string);
+-
+-}
+-
+-
+ /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
+ /*
+ ** Display the image after rendering. Some OS do not allow
+@@ -45,7 +30,7 @@
+
+
+ strcpy(temp, pov.input_file_name);
+- sprintf(imgfile, "%s", truncate(temp, '.'));
++ sprintf(imgfile, "%s", strtruncate(temp, '.'));
+
+
+ /*