diff --git a/src/test/UDPC_NetworkTest.c b/src/test/UDPC_NetworkTest.c index f05716d..d3b1819 100644 --- a/src/test/UDPC_NetworkTest.c +++ b/src/test/UDPC_NetworkTest.c @@ -50,15 +50,11 @@ void updateSendBuffer(uint32_t *index, char *buffer) *index = 0; } - uint32_t temp; + uint32_t temp = 1; for(int x = 0; x < 6; ++x) { - temp = 1; - for(int y = 0; y < x; ++y) - { - temp *= 26; - } buffer[x] = (*index / temp) % 26 + 'a'; + temp *= 26; } }