Line
Link Here
|
0 |
-- frontend/file-selector.cc |
0 |
++ frontend/file-selector.cc |
Lines 853-859
Link Here
|
853 |
// check write access to the directory (note that we need execute |
853 |
// check write access to the directory (note that we need execute |
854 |
// privileges as well) |
854 |
// privileges as well) |
855 |
|
855 |
|
856 |
char *slash = strrchr( file, '/'); |
856 |
char *slash; |
|
|
857 |
strcpy (slash, strrchr( file, '/')); |
858 |
|
857 |
*slash = '\0'; // temporarily truncate to dirname |
859 |
*slash = '\0'; // temporarily truncate to dirname |
858 |
const char *dir = (file == slash |
860 |
const char *dir = (file == slash |
859 |
? "/" // whoops!, file in root directory |
861 |
? "/" // whoops!, file in root directory |
Lines 988-994
Link Here
|
988 |
{ |
990 |
{ |
989 |
bool found = false; |
991 |
bool found = false; |
990 |
|
992 |
|
991 |
char *slash = strrchr( regexp, '/' ); |
993 |
char *slash; |
|
|
994 |
strcpy(slash, strrchr( regexp, '/' )); |
992 |
|
995 |
|
993 |
if (!slash) |
996 |
if (!slash) |
994 |
return true; |
997 |
return true; |
995 |
-- lib/fax-encoder.cc |
998 |
++ lib/fax-encoder.cc |
Lines 34-39
Link Here
|
34 |
#include "fax-encoder.hh" |
34 |
#include "fax-encoder.hh" |
35 |
|
35 |
|
36 |
#include <vector> |
36 |
#include <vector> |
|
|
37 |
#include <stdint.h> |
37 |
|
38 |
|
38 |
#define WHITE false |
39 |
#define WHITE false |
39 |
#define BLACK true |
40 |
#define BLACK true |