Explorar el Código

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 hace 13 años
padre
commit
b9211cf493
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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 = strcpy(to, value); to += strlen(value);
-	       to = stpcpy(to, y+strlen(motif));
+	       strcpy(to, y+strlen(motif));
 
 	       *src = strdup(neo);
 	       y = strstr(*src, motif);