summaryrefslogtreecommitdiff
path: root/recordmydesktop/src/rmd_cache.c
diff options
context:
space:
mode:
authoriovar <iovar@f606c939-3180-4ac9-a4b8-4b8779d57d0a>2008-09-16 23:00:23 +0000
committeriovar <iovar@f606c939-3180-4ac9-a4b8-4b8779d57d0a>2008-09-16 23:00:23 +0000
commit6263179e32282998844165becb5c4a6a83cf92dc (patch)
tree8db195e60c5e7183758fe1dc12b151bbef1a23e2 /recordmydesktop/src/rmd_cache.c
parent1a552224e9f79089c0f3be4b19dc4f456b409034 (diff)
src/rmd_cache.c ,
src/rmd_init_encoder.c , src/rmd_jack.c : replaced calls to the redudant I16TOA macro, with calls to snprintf and as a result, the above files no longer depend on src/rmd_macro.h. src/rmd_macro.h : Removed the redudant and now unneeded I16TOA macro. git-svn-id: https://recordmydesktop.svn.sourceforge.net/svnroot/recordmydesktop/trunk@556 f606c939-3180-4ac9-a4b8-4b8779d57d0a
Diffstat (limited to 'recordmydesktop/src/rmd_cache.c')
-rw-r--r--recordmydesktop/src/rmd_cache.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/recordmydesktop/src/rmd_cache.c b/recordmydesktop/src/rmd_cache.c
index 18e7bf3..5fe5207 100644
--- a/recordmydesktop/src/rmd_cache.c
+++ b/recordmydesktop/src/rmd_cache.c
@@ -31,7 +31,7 @@
#include "rmd_types.h"
#include "rmd_cache.h"
-#include "rmd_macro.h"
+
#include "rmd_specsfile.h"
@@ -49,7 +49,7 @@ static void CacheFileN(char *name, char **newname, int n) { // Nth cache file
char numbuf[8];
strcpy(*newname,name);
strcat(*newname,".");
- I16TOA((n),numbuf)
+ snprintf( numbuf, 8, "%d", n );
strcat(*newname,numbuf);
}
@@ -159,7 +159,7 @@ void InitCacheData(ProgData *pdata,
cache_data_t->workdir=(pdata->args).workdir;
pid=getpid();
- I16TOA(pid,pidbuf)
+ snprintf( pidbuf, 8, "%d", pid );
//names are stored relatively to current dir(i.e. no chdir)
cache_data_t->projname=malloc(strlen(cache_data_t->workdir)+
12+strlen(pidbuf)+3);
© All Rights Reserved