summaryrefslogtreecommitdiffstats
path: root/graphics/xfpovray/files/patch-ae
blob: 49b4e321e32e21ea709ab3018a3ccd085da7af4e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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, '.'));
 
     
     /* 
OpenPOWER on IntegriCloud