core, pxe: Don't push on one stack and pop from the other in pxenv
[syslinux.git] / core / fs / getcwd.c
blob70b931527ccf9a75e18754cb2e61b68aed2ac575
1 #include <string.h>
2 #include "fs.h"
4 __export char *core_getcwd(char *buf, size_t size)
6 char *ret = NULL;
8 if((buf != NULL) && (strlen(this_fs->cwd_name) < size)) {
9 strcpy(buf, this_fs->cwd_name);
10 ret = buf;
12 return ret;