oops
This commit is contained in:
parent
b36d343083
commit
39af1ba2b8
@ -1,12 +1,12 @@
|
||||
$OpenBSD: patch-EXIF_xs,v 1.2 2005/11/14 17:38:18 pvalchev Exp $
|
||||
$OpenBSD: patch-EXIF_xs,v 1.3 2005/11/14 17:48:00 pvalchev Exp $
|
||||
--- EXIF.xs.orig Wed Jan 14 15:12:54 2004
|
||||
+++ EXIF.xs Mon Nov 14 10:14:09 2005
|
||||
+++ EXIF.xs Mon Nov 14 10:30:18 2005
|
||||
@@ -29,10 +29,10 @@ read_data(char *fname)
|
||||
mode = "r";
|
||||
#endif
|
||||
|
||||
- if(strcmp(fname, _file_name)){
|
||||
+ if (strncmp(fname, _file_name, sizeof(_file_name)-1) == 0) {
|
||||
+ if (strncmp(fname, _file_name, sizeof(_file_name)-1)) {
|
||||
fpn = fopen(fname, mode);
|
||||
if (fpn)
|
||||
- strcpy(_file_name, fname);
|
||||
|
Loading…
x
Reference in New Issue
Block a user