Browse Source

tests/loader.c: decode(): use strcpy() instead of stpcpy() since the latter is not really needed.

Some systems do not defined stpcpy(), even though it is defined by POSIX 2008. Not using stpcpy() will allow StarPU to be built on such systems, such as NetBSD.
Cyril Roelandt 13 years ago
parent
commit
b9211cf493
1 changed files with 1 additions and 1 deletions
  1. 1 1
      tests/loader.c

+ 1 - 1
tests/loader.c

@@ -130,7 +130,7 @@ static void decode(char **src, char *motif, char *value)
 
 
 	       to = strncpy(to, *src, strlen(*src)-strlen(y)); to += strlen(*src)-strlen(y);
 	       to = strncpy(to, *src, strlen(*src)-strlen(y)); to += strlen(*src)-strlen(y);
 	       to = strcpy(to, value); to += strlen(value);
 	       to = strcpy(to, value); to += strlen(value);
-	       to = stpcpy(to, y+strlen(motif));
+	       strcpy(to, y+strlen(motif));
 
 
 	       *src = strdup(neo);
 	       *src = strdup(neo);
 	       y = strstr(*src, motif);
 	       y = strstr(*src, motif);