projects
/
u
/
mdw
/
putty
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Oops, Ben is quite right about the rather appalling design of
[u/mdw/putty]
/
mac
/
mac.c
diff --git
a/mac/mac.c
b/mac/mac.c
index
98b1322
..
50d3199
100644
(file)
--- a/
mac/mac.c
+++ b/
mac/mac.c
@@
-1,4
+1,4
@@
-/* $Id: mac.c,v 1.
39 2003/02/01 15:44:08 be
n Exp $ */
+/* $Id: mac.c,v 1.
40 2003/02/01 17:24:26 simo
n Exp $ */
/*
* Copyright (c) 1999 Ben Harris
* All rights reserved.
/*
* Copyright (c) 1999 Ben Harris
* All rights reserved.
@@
-801,7
+801,7
@@
void platform_get_x11_auth(char *display, int *proto,
/* SGT: I have no idea whether Mac X servers need anything here. */
}
/* SGT: I have no idea whether Mac X servers need anything here. */
}
-Filename filename_from_str(char *str)
+Filename filename_from_str(c
onst c
har *str)
{
Filename ret;
strncpy(ret.path, str, sizeof(ret.path));
{
Filename ret;
strncpy(ret.path, str, sizeof(ret.path));
@@
-809,11
+809,9
@@
Filename filename_from_str(char *str)
return ret;
}
return ret;
}
-c
har *filename_to_str(Filename
fn)
+c
onst char *filename_to_str(const Filename *
fn)
{
{
- /* FIXME: Memory leak! */
-
- return dupstr(fn.path);
+ return fn->path;
}
int filename_equal(Filename f1, Filename f2)
}
int filename_equal(Filename f1, Filename f2)