diff options
Diffstat (limited to 'mail/gubby/files')
-rw-r--r-- | mail/gubby/files/patch-aa | 18 | ||||
-rw-r--r-- | mail/gubby/files/patch-ab | 13 |
2 files changed, 31 insertions, 0 deletions
diff --git a/mail/gubby/files/patch-aa b/mail/gubby/files/patch-aa new file mode 100644 index 000000000000..30571fa82b7f --- /dev/null +++ b/mail/gubby/files/patch-aa @@ -0,0 +1,18 @@ +--- src/gubby.cpp.orig Tue Feb 4 16:16:09 2003 ++++ src/gubby.cpp Tue Feb 4 16:15:32 2003 +@@ -49,13 +49,13 @@ + char buf[1024]; + + if ( f != 0 ) +- while ( !feof(f) ) { ++ while ( !feof(f.fptr()) ) { + + buf[0] = 0; + char* s = &buf[0]; + const char* p = find; + +- fgets(s, sizeof buf / sizeof(char), f); ++ fgets(s, sizeof buf / sizeof(char), f.fptr()); + + // search for matched string + while ( *p++ == *s++ ); diff --git a/mail/gubby/files/patch-ab b/mail/gubby/files/patch-ab new file mode 100644 index 000000000000..c2258833e776 --- /dev/null +++ b/mail/gubby/files/patch-ab @@ -0,0 +1,13 @@ +--- include/file_ptr.h.orig Mon Feb 3 09:38:16 2003 ++++ include/file_ptr.h Tue Feb 4 16:15:37 2003 +@@ -61,6 +61,10 @@ + return ptr; + } + ++ FILE* fptr() const { ++ return ptr; ++ } ++ + void operator=(FILE* f) { + close(); + ptr = f; |