X-Git-Url: https://git.ucc.asn.au/?p=atyndall%2Fcits2231.git;a=blobdiff_plain;f=helper.c;fp=helper.c;h=bd5f37b7f1f6a97d8396a69e1e3f2c2c846c635c;hp=9da3e1d2cd6f8214880215664a02612f41bc606e;hb=c0ede11eba8b0b5ebfd1a177a630a5d33cc0842b;hpb=e8087a7fdcdb4e8bd8304bdba1d311a4f33e8e92 diff --git a/helper.c b/helper.c index 9da3e1d..bd5f37b 100644 --- a/helper.c +++ b/helper.c @@ -310,7 +310,7 @@ int addSceneObject(int id) { sceneObjs[nObjects].rotation.vect = (vector*)calloc( 3, sizeof(vector[0]) ); if ( sceneObjs[nObjects].scale == NULL || sceneObjs[nObjects].rotation.vect == NULL ) { - sprintf(stderr, "Could not allocate memory for Scene Object! Shutting down!\n"); + fprintf(stderr, "Could not allocate memory for Scene Object! Shutting down!\n"); exit(EXIT_FAILURE); }