diff options
author | Pav Lucistnik <pav@FreeBSD.org> | 2005-09-17 22:48:49 +0000 |
---|---|---|
committer | Pav Lucistnik <pav@FreeBSD.org> | 2005-09-17 22:48:49 +0000 |
commit | 379c9824eaf1f2087f9ff8bd67751d97eced61b1 (patch) | |
tree | 7a2d168d35a8ae9f8e5f9cd83c3ad1ec3285163f /games/xshisen/files/patch-readxpm.C | |
parent | 3b940d8a150a403400489116bdbde060e80f5fab (diff) | |
download | ports-379c9824eaf1f2087f9ff8bd67751d97eced61b1.tar.gz ports-379c9824eaf1f2087f9ff8bd67751d97eced61b1.zip |
- Update to 1.51
PR: ports/86269
Submitted by: Ports Fury
Notes
Notes:
svn path=/head/; revision=143044
Diffstat (limited to 'games/xshisen/files/patch-readxpm.C')
-rw-r--r-- | games/xshisen/files/patch-readxpm.C | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/games/xshisen/files/patch-readxpm.C b/games/xshisen/files/patch-readxpm.C index 44bb429475d5..d1ac1540fe1b 100644 --- a/games/xshisen/files/patch-readxpm.C +++ b/games/xshisen/files/patch-readxpm.C @@ -1,14 +1,14 @@ $FreeBSD$ ---- readxpm.C.orig -+++ readxpm.C +--- readxpm.C.orig Sun Jul 7 01:34:47 2002 ++++ readxpm.C Thu Sep 15 13:56:38 2005 @@ -12,7 +12,7 @@ char buffer[1024]; for(int i=0; i<PKIND; i++) { -- sprintf(buffer, "%s/%s.xpm", directory, files[i]); -+ snprintf(buffer, sizeof(buffer), "%s/%s.xpm", directory, files[i]); +- sprintf(buffer, "%s/%s/%s.xpm", directory, subdir, files[i]); ++ snprintf(buffer, sizeof(buffer), "%s/%s/%s.xpm", directory, subdir, files[i]); Mp[i].ReadFile(w, buffer, i, globRes.colorCloseness); } } |