projects
/
mmh
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Rewrote late declations, which are part of C99, but not C89.
[mmh]
/
sbr
/
path.c
diff --git
a/sbr/path.c
b/sbr/path.c
index
e5576b8
..
27af5b3
100644
(file)
--- a/
sbr/path.c
+++ b/
sbr/path.c
@@
-234,12
+234,13
@@
char *
expanddir(char *d)
{
static char buf[BUFSIZ];
+ int len;
if (*d == '/') {
strcpy(buf, d);
} else {
getcwd(buf, sizeof buf);
- int len = strlen(buf);
+ len = strlen(buf);
snprintf(buf+len, sizeof buf - len, "/%s", d);
}
packpath(buf);