1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-14 23:46:10 +00:00
freebsd-ports/graphics/xfpovray/files/patch-ae

34 lines
792 B
Plaintext
Raw Normal View History

1998-02-17 07:57:29 +00:00
--- 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 @@
1998-02-17 07:57:29 +00:00
extern OUTPUT_PAGE_S *outputPage;
1998-02-17 07:57:29 +00:00
-
-/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
1998-02-17 07:57:29 +00:00
-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 @@
1998-02-17 07:57:29 +00:00
strcpy(temp, pov.input_file_name);
- sprintf(imgfile, "%s", truncate(temp, '.'));
+ sprintf(imgfile, "%s", strtruncate(temp, '.'));
/*