Explorar o 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 %!s(int64=13) %!d(string=hai) anos
pai
achega
b9211cf493
Modificáronse 1 ficheiros con 1 adicións e 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);