Revision faa44e3d fsdev/file-op-9p.h

b/fsdev/file-op-9p.h
97 97
    void *opaque;
98 98
} FileOperations;
99 99

  
100
static inline const char *rpath(FsContext *ctx, const char *path)
101
{
102
    /* FIXME: so wrong... */
103
    static char buffer[4096];
104
    snprintf(buffer, sizeof(buffer), "%s/%s", ctx->fs_root, path);
105
    return buffer;
106
}
107 100
#endif

Also available in: Unified diff